I tried installing aws/aws-sdk-php yesterday on one of my Laravel 4 projects using Composer, I cannot remember the event chain exactly, but it was not installed successfully. Since then I get errors that caused Composer to run out of memory - Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52 .
I increased php.ini memory_limit to -1, and this is still happening, both in my development environment and in the production environment (production of Cent OS 6). Installation completes successfully if I increment memory_limit via the CLI when running composer_update , but it takes forever.
Is there any cache I need to clear so that Composer runs out of memory? I have the feeling that he still tries to install the AWS SDK every time I run an update for the composer.
Composer file
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "require": { "laravel/framework": "4.0.*", "rtablada/package-installer": "dev-master", "mogreet/mogreet-php": "dev-master", "twilio/laratwilio": "dev-master", "balloon/elephant.io": "dev-master", "facebook/php-sdk": "dev-master", "way/generators": "dev-master", "codesleeve/asset-pipeline": "dev-master", "natxet/CssMin": "dev-master" }, "autoload": { "classmap": [ "app/commands", "app/controllers", "app/models", "app/database/migrations", "app/database/seeds", "app/tests/TestCase.php", "app/libraries" ] }, "scripts": { "post-install-cmd": [ "php artisan optimize" ], "pre-update-cmd": [ "php artisan clear-compiled" ], "post-update-cmd": [ "php artisan optimize" ], "post-create-project-cmd": [ "php artisan key:generate" ] }, "config": { "preferred-install": "dist" }, "minimum-stability": "dev" }
php laravel-4 composer-php
NightMICU
source share