composer memory limit code example
Example 1: composer allowed memory size
COMPOSER_MEMORY_LIMIT=-1 composer require owen-it/laravel-auditing
Example 2: composer memory limit
php -d memory_limit=512M /usr/local/bin/composer update
Example 3: composer update withou memory limit
php -d memory_limit=-1 path_to_composer.phar_that_threw_the_error update
Example 4: composer allowed memory size
export COMPOSER_MEMORY_LIMIT=-1