Composer update memory limit code example
Example 1: composer memory limit
php -d memory_limit=512M /usr/local/bin/composer update
Example 2: Composer update memory limit
COMPOSER_MEMORY_LIMIT=-1 composer update
php -d memory_limit=512M /usr/local/bin/composer update
COMPOSER_MEMORY_LIMIT=-1 composer update