Laravel Tinker ( Boris ) + MAMP + OS X Yosemite

How to get Redline and PCNTL working with MAMP on OS X 10.10 Yosemite

Categories: Development

I like to use MAMP for my local development mostly because it’s fast and simple to use.

I came across an issue while attempting to use Laravels Tinker feature that is based off Boris.

I did some searching and found out that it had to do with the fact that MAMP does not include the Redline or PCNTL extensions for PHP. The extension could be installed using Homebrew and a standalone version of PHP but I didn’t want to go down that path.

I was, however, able to find an article on compiling the extensions from source, Everything worked fine.

I thought I would save everyone the trouble and provide my compiled extensions used for PHP 5.4 presumably you can run through the same procedures to use PHP 5.5+ but this is something that I have not tried.

As a note

I am using OSX 10.10 Yosemite and both extensions are still working perfectly.

Download and place the extensions here /Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525

Next, run the following in the command line.

echo "" >> /Applications/MAMP/bin/php/php5.6.1/conf/php.ini

Adam Patterson

Adam Patterson

User Interface Designer & Developer with a background in UX. I have spent 5 years as a professionally certified bicycle mechanic and ride year-round.

I am a husband and father of two, I enjoy photography, music, movies, coffee, and good food.

You can find me on Twitter, Instagram, and YouTube!