Home >Backend Development >PHP Tutorial >How to Fix Composer's 'Allowed memory size exhausted' Error During HWIOAuthBundle Installation?
Composer Memory Exhaustion Error with HWIOAuthBundle Installation
When attempting to install the HWIOAuthBundle via composer require, you may encounter an "Allowed memory size exhausted" error. This indicates that Composer is running out of memory while resolving dependencies.
Solution:
Increase the memory limit:
Alternatively, increase the limit with a command-line argument:
php -d memory_limit=-1 composer.phar require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle
Check loaded PHP.ini files:
Quick solution (macOS/Linux):
php composer.phar COMPOSER_MEMORY_LIMIT=-1 require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle
Quick solution (Windows):
COMPOSER_MEMORY_LIMIT=-1 composer require hwi/oauth-bundle php-http/guzzle6-adapter php-http/httplug-bundle
The above is the detailed content of How to Fix Composer's 'Allowed memory size exhausted' Error During HWIOAuthBundle Installation?. For more information, please follow other related articles on the PHP Chinese website!