Why composer install timeouts after 300 seconds?

Check with composer update/install -o -vvv whether the package is being loaded from composers’ cache. If yes, try clearing composer’s cache or try adding –cache-dir=/dev/null. To force downloading an archive instead of cloning sources, use the –prefer-dist option in combination with –no-dev. Otherwise you could try raising composer’s process timeout value: export COMPOSER_PROCESS_TIMEOUT=600 # default … Read more

How to specify Composer install path?

It seems that you can define the vendor dir to be something else (plugins in your case): { “config”: { “vendor-dir”: “plugins” } } Then, you might rename the package name to not have a level dir inside, like: “package”: { “name”: “sfGuardPlugin”, So, your composer.json should look like this: { “config”: { “vendor-dir”: “plugins” … Read more

composer.lock: how does it work?

composer.lock records the exact versions that are installed. So that you are in the same versions with your co-workers. composer install Check for composer.lock file If not, auto generate composer.lock file (Using composer update) Install the specified versions recorded in the composer.lock file composer update Go through the composer.json file Check availability of newer (latest) … Read more

OSX -bash: composer: command not found

The path /usr/local/bin/composer is not in your PATH, executables in that folder won’t be found. Delete the folder /usr/local/bin/composer, then run $ mv composer.phar /usr/local/bin/composer This moves composer.phar into /usr/local/bin/ and renames it into composer (which is still an executable, not a folder). Then just use it like: $ composer …