Can't install php56-mcrypt with homebrew
With recent changes in brew (deprecation of homebrew/php) you now install php with mcrypt with the following.

brew install php@5.6 -with-mcrypt=mcrypt


You may have to uninstall previous installs of php