Run composer without memory limits

Sometimes when you are running composer update/install you get a message similar to this:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes)

You can easily overcome this by running composer command with the php flag for no memory limit, like this:

php -d memory_limit=-1 composer.phar install
Pedro Luz
A personal blog by Pedro Luz about coding, coding, habit building, and a few things more.(Psst... I am open to opportunities.)
Reach out to me on your favorite social :)© 2020 Pedro Luz