You can still follow these guidelines below, however Jack Skinner has posted up an easier way to install PHP7 using homebrew here:


Note: you can also use this process to install PHP7 just as easily and avoid the gotchas at the end.

If, like me, you are keen to work with the latest PHP syntax on the latest Mac OS operating system — and especially if you are trying to keep up with the rapidly moving world of Laravel development — you will have noticed that there have been some recent changes that make this more difficult.

Most importantly, there is now a restricted mode on system files — even sudo statements will not be able to change these files, meaning that even if you can get PHP5.6+ installed, the chances of your system recognising it are considerably reduced. …


Robin Layfield

Cotswolds-based web developer digs Laravel, CodeIgniter, PHP, jQuery & MySQL. Makes a living cutting code into tiny bits.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store