After the Yosemite update yesterday, something is messed up with the Mcrypt extension. The PHP based artistan CLI of the Laravel framework returns:
M
1) First check what php.ini file is loaded:
php --ini
You will probably see that none of the files have been loaded.
2) If you don't mind reinstalling php you can do this:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
3) Then set the path to your new php installation in order to avoid using the native php that comes with OSX.
In order to set the path use this command - something like this, bear in mind that your path could be different:
export PATH=/usr/local/php5/bin:$PATH