Kategorien
IT

PEAR PHP in local MAMP dev environment

Screenshot 2015-06-22 20.48.20

 

Depending on your php and MAMP version  you’ll find your pear installer somewhere like here:
/Applications/MAMP/bin/php/php5.6.2/bin

cd into that directory and install your pear packages like this:
sudo ./pear install Net_SMTP

You can find a db of all available pear packages here: https://pear.php.net/packages.php