I am getting the usual problem with a composer update in Laravel. I am using the latest MAMP install and it seems to be using the MAMP php. 'which php' returns
php: aliased to /Applications/MAMP/bin/php/php5.5.10/bin/php
However, MAMP's php info does show that mcrypt is running but when I do a composer update it fails on 'composer update'
Generating autoload files
Mcrypt PHP extension required.
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
So no autoload files are being generated. How to fix?