php -d memory_limit=-1 composer.phar <...> code example Example: composer memory limit php -d memory_limit=512M /usr/local/bin/composer update