My PHP command line is missing an extension

MAMP PRO command line PHP uses a php.ini file located within the /Applications/MAMP folder. When using the command line PHP, some extensions may be missing. To include these extensions, add them to the corresponding version number. For instance, PHP 7.1.1 would use the following php.ini file located in/Applications/MAMP/bin/php/php7.1.1/conf.