OSX composer increase memory limit
To run composer with no memory limit, first find out where your composer binary is with which composer
. Use the resulting path like so:
php -d memory_limit=-1 /usr/local/bin/composer require etc/etc
You could also alias this: alias composer="php -d memory_limit=-1 /usr/local/bin/composer"
, which would allow you to call composer as you would normally.
Add that line to your bash profile if you want to use composer without limits permanently.