xxxxxxxxxx
export COMPOSER_MEMORY_LIMIT=-1
xxxxxxxxxx
ini_set('memory_limit', '1024M'); // 1GB
// OR
ini_set('memory_limit', '-1'); // unlimited memory (may cause a memory leak)
xxxxxxxxxx
//insted of
composer require illuminate/support
//Run following command
COMPOSER_MEMORY_LIMIT=-1 composer require illuminate/support
xxxxxxxxxx
//Allowed memory size of 134217728 bytes exhausted (tried to allocate 65015808 bytes)
<?php
ini_set('memory_limit', '1024M');
?>
Or
set in php.ini
memory_limit = -1
xxxxxxxxxx
set COMPOSER_MEMORY_LIMIT=-1
xxxxxxxxxx
Fatal error: Allowed memory size of 1610612736 bytes exhausted
export COMPOSER_MEMORY_LIMIT=-1
and restart composer update
xxxxxxxxxx
php -d memory_limit=-1 /usr/local/bin/composer install
xxxxxxxxxx
composer self-update
xxxxxxxxxx
php -d memory_limit=-1 composer.phar require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle