<X />C{}JS();

A More Complete PHP Build Configuration for Sublime Text 2

September 20, 2013

Sublime Text 2 Icon

The updated file can be found on the XCJS GitHub.

The updated script corrects the build configuration not being chosen automatically and provides additional commands in the command palette.

{
  "selector": "source.php",
  "cmd": [
    "php",
    "-l",
    "$file"
  ],
  "variants": [
    {
      "name": "Run",
      "cmd": [
        "php",
        "$file"
      ]
    },
    {
      "name": "PHP Version",
      "cmd": [
        "php",
        "-v"
      ]
    },
    {
      "name": "PHP Config",
      "cmd": [
        "php",
        "--ini"
      ]
    },
    {
      "name": "PHP Info",
      "cmd": [
        "php",
        "-i"
      ]
    },
    {
      "name": "PHP Modules",
      "cmd": [
        "php",
        "-m"
      ]
    }
  ]
}