- Fileicons
- Laravel Blade Highlighter
- Vue Syntax Highlight
- Sass
- Emmet
- Emmet CSS Snippets
- PHP Companion
- Sublime Linter
- SnippetMaker
- PhpDoc
- Install package
Sublimelinter
- Install package
Sublimelinter-phpcs
- Install
phpcs
globally in your machine withcomposer
(Windows users may have some problem doing this) - https://github.com/squizlabs/PHP_CodeSniffer#installation - Docs: https://github.com/SublimeLinter/SublimeLinter-phpcs
- https://github.com/FriendsOfPHP/PHP-CS-Fixer
- Install
php-cs-fixer
globally with composercomposer global require friendsofphp/php-cs-fixer
- Create a new build system with Sublime and add the following contents
- Chose the build system you just created in Tools > Build System
- Hit CTRL/CMD + B to run
{
"shell_cmd": "php-cs-fixer fix '$file' --rules=@PSR2 --using-cache=no"
}