My PHP Command Line Is Missing an Extension

MAMP PRO's command line PHP uses a php.ini file located within the /Applications/MAMP folder. If certain extensions are missing when using PHP via the command line, you need to add them to the correct php.ini file for the PHP version you're using.

For example, if you're using PHP 7.1.1, the php.ini file is located at:

/Applications/MAMP/bin/php/php7.1.1/conf/php.ini

Simply edit this file to include the necessary extensions, then restart your servers to apply the changes.