Skip to content

Instantly share code, notes, and snippets.

@dotherightthing
Last active August 14, 2019 04:47
Show Gist options
  • Save dotherightthing/1e12c67a17c5261331a97bfaa154606d to your computer and use it in GitHub Desktop.
Save dotherightthing/1e12c67a17c5261331a97bfaa154606d to your computer and use it in GitHub Desktop.
[Sublime PHP build system] Add a PHP build system to Sublime #sublime #php

Add a PHP build system to Sublime

Get PHP path

http://localhost/MAMP/index.php?page=phpinfo&language=English

--exec-prefix=/Applications/MAMP/bin/php/php5.6.30'

Add build system

Tools > Build system > New build system

{
  "cmd": ["/Applications/MAMP/bin/php/php5.6.30/bin/php", "$file"],
  "file_regex": "php$",
  "selector": "source.php"
}

Use the build system

  1. Create PHP file
  2. Sublime > Tools > Build System > PHP
  3. Sublime > Tools > Build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment