Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Notes about advanced composer
COMPOSER_TIMEOUT=600 php -d memory_limit=2G path/to/composer.phar $@
php -d memory_limit=2G /path/to/composer.phar $@
alias composer='path/to/'
1. Checkout just the composer.* files to the docker build dir
2. Run docker build
1. Copy just the composer.* files into the build image
2. Run composer install with flags
3. Copy in source files
4. Run composer dump-autoload --optimize
# Super GH speed
# Small deployment, ignores dev packages
# Power
--optimize-autoloader or dump-autoload --optimize
# Github rate limits api calls
composer config -g <token>
# Create token at
# They fixed it in 1.3.0
composer self-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment