Why is PHP Composer so slow?

Because Composer is implemented by file_get_contents(). That has no TCP optimizations, no Keep-Alive, no multiplexing, etc. I created a Composer plugin to download packages in parallel: https://packagist.org/packages/hirak/prestissimo $ composer global require hirak/prestissimo Please try it. In my environment, composer install becomes 10 times faster.

Disabling xdebug when running composer

Update: For Xdebug 3+: As of Xdebug 3, it is possible to disable the Xdebug completely by setting the option xdebug.mode to off, or by setting the environment variable XDEBUG_MODE=off. It is very easy to disable Xdebug just for composer, by aliasing composer. alias composer=”XDEBUG_MODE=off \composer” OR alias composer=”php -dxdebug.mode=off $(where composer | fgrep -v … Read more

Problems with lib-icu dependency when installing Symfony 2.3.x via Composer

update your php-intl extension, that’s where the icu error comes from! sudo aptitude install php5-intl // i.e. ubuntu brew install icu4c // osx check the extension is enabled and properly configured in php.ini aswell. ( hint: php-cli sometimes uses a different php.ini ) php.ini extension=intl.so ; *nix extension=php_intl.dll ; windows [intl] intl.default_locale = en_utf8 intl.error_level … Read more

NPM/Bower/Composer – differences?

[update, four years later] bower is deprecated, and should not be used anymore for new projects. To a large extent, it has been subsumed into node dependency management (from their website: “While Bower is maintained, we recommend using Yarn and Webpack or Parcel for front-end projects”). yarn came out of the wood as a better … Read more

Installing specific laravel version with composer create-project

From the composer help create-project command The create-project command creates a new project from a given package into a new directory. If executed without params and in a directory with a composer.json file it installs the packages for the current project. You can use this command to bootstrap new projects or setup a clean version-controlled … Read more