Composer, the defacto package manager for PHP, uses a SAT solver. It's pretty interesting looking at the code!
Worst case in extremely big projects you just add some swap and let it run for a while, the time required is still in the order of tens of minutes.
Compare that to hours long c++ build times.