Step1: install package phpcs
by package control
Step2: Configure phpcs
.
Open setting file by Preference
> Package Settings
> PHP Code Sniffer
> Settings - User
.
Paste codes as below then replace value of phpcs_php_prefix_path
and php_cs_fixer_executable_path
according to your environment.
1 | { |
###Step3: Restart sublime text and open a php file
PHP Coding Standards will run on file save.