Path to php executable on a mac with vscode and mamp

Robert Brax picture Robert Brax · Nov 21, 2016 · Viewed 14.1k times · Source

vscode requires path to php set for this parameter:

"php.validate.executablePath":

so I specified this:

"/Applications/MAMP/bin/php/php7.0.12/bin/php"

but it isn't recognized.

What is the correct path ?

Answer

Abdul Manan picture Abdul Manan · Sep 11, 2017

I am using mac i have install php intellisense that required php version 7 executable path i have already php 7 installed. Terminal command

which php

work for me.