If you are in the PHP community and arn’t using Composer, you are being left behind by its awesomeness. However Composer has some issues that its trying to solve as it grows.
From time to time as Composer tries to work out your package dependancies it might run out of memory. This is rare, but can be annoying if you are in a hurry.
Try running the following command to give PHP more memory to work with:
php -d memory_limit=2G /usr/bin/composer update
Just incase the above command doesn’t work you can use the following to work out where your composer file is located and use that instead.
php -d memory_limit=2G `which composer` update