Custom Build System for PHP Scripts Sublime3 # Sublime3 : Custom Build System for PHP ## Helps to run and debug PHP Scripts directly using Sublime3
## Note: PHP Binary ( php.exe ) should be within SYSTEM PATH
Otherwise You should edit Build System and paste absolute Path for php.exe binary
# Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 { "shell_cmd" : "php.exe -f "${file}"" , "file_regex" : "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$" , "working_dir" : "${file_path}" , "selector" : "source.php, source.php4, source.php5" , "variants" : [ { "name" : "Run with CMD" , "shell_cmd" : "start cmd.exe /k php.exe -f "${file}"" }, { "name" : "Run and Only Lint PHP Code" , "shell_cmd" : "start cmd.exe /k php.exe -l "${file}"" }, { "name" : "Start PHP Development Server" , "shell_cmd" : "start cmd.exe /k php.exe -S 127.0.0.10:8080 -t "${file_path}"" }, { "name" : "Launch Home Page for Server (Google Chrome)" , "shell_cmd" : "start chrome http://127.0.0.10:8080" }, { "name" : "Launch Home Page for Server (Mozilla Firefox)" , "shell_cmd" : "start firefox http://127.0.0.10:8080" }, { "name" : "Launch Home Page for Server (Explorer)" , "shell_cmd" : "start http://127.0.0.10:8080" }, { "name" : "Launch Home Page for Server (MS Edge)" , "shell_cmd" : "start microsoft-edge:http://127.0.0.10:8080" }, { "name" : "Launch Home Page for Server (Internet Explorer)" , "shell_cmd" : "start iexplore http://127.0.0.10:8080" }, { "name" : "Generate Syntax Highlighted Code and Copy to Clipboard" , "shell_cmd" : "php.exe -s "${file}" | clip" } ] }
# Video Tutorial
VIDEO visit to link download