SublimeLinter is a linting framework. The actual linting is done by separate Sublime Text plugins, which can be installed via Package Control (e.g. SublimeLinter-php). You can adjust the settings file under Preferences > Package Settings > SublimeLinter > User Settings – User or use the default settings. For further information on SublimeLinter read the official documentation.
PHP Linting
- Make sure SublimeLinter 3 (the Framework) is installed. In the Repository it’s just called SublimeLinter.
- Install SublimeLinter-php via Package Control.
- Install and run PHP on your computer. If you’re using XAMPP, you only need to run Apache.
- Add the PHP executable to your PATH environment variable (system or user). With XAMPP directly installed under C: in Windows, the path to the folder that contains the executable is C:\xampp\php. And that’s exactly what you need to add to your PATH (the folder, not the executable itself).