Open a terminal and type php -v
to see the current version of php.
Determine the path for the wanted php version of mamp (YOUR VERSION ON YOUR COMPUTER!)
- example : /Applications/MAMP/bin/php/php5.x.x/bin/php
Type in the terminal cd ~
to change the current directory (in your home)