Things I've tried:
- Removing everything except for Laravel (version 4.2.*) - This completes but still hangs for around 5 minutes
- Updating composer
- Removing /vendor
- Doing clean Laravel 4.2 install (hangs around 3 minutes)
- Doing clean Laravel 5 install (doesn't hang at all)
- Turning off xdebug completely (doesn't seem to make a difference)
With all my packages, I've seen composer complete but only when I left it running overnight. I can't deploy to forge at all because it times out! This only started happening two or so weeks ago.
For all looking for an answer...here's what helped increase performance:
- Commit composer.lock: if you're not doing this already you can run 'composer update' on one machine and then commit your lock file then run 'composer install' on each other machine. This saved our deployment process!
- Generally declare versions as explicitly as possible.
and/or
- update your Laravel version!
来源:https://stackoverflow.com/questions/37818396/composer-hangs-on-resolving-dependencies-through-sat-on-4-2