Sublime Text Execute PHP Scripts
How To Execute PHP From SBT
If you want to quickly test your PHP scripts from within Sublime Text you have to add a build file. Go to Tools > Build System > New Build System That should bring a new file, you should place the following inside:
{
"cmd": ["php" , "$file"]
}
In my system, I had to place the absolute path to my current PHP
version.
/opt/local/bin/php
since I have the default PHP
and one installed with MacPorts.
Now, you can command ⌘ + b
your script, and see the output in the built in text console.