How to setup mcrypt for php in OS X
With Homebrew, it’s very easy. Given that you tapped in with Jose Gonzalez’s php repo.
1. Install mcrypt and it’s libraries by typing: brew install mcrypt php53-mcrypt
2. add the content of /usr/local/etc/php/5.3/conf.d/ext-mcrypt.ini to /etc/php.ini
3. restart Apache ( sudo apachectl restart )