PHP Codebeautifier
This is a plugin for Sublime Text 3 that gives the option to run the phpcbf
Details
Installs
- Total 138K
- Win 93K
- Mac 23K
- Linux 22K
Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 4 | 7 | 2 | 3 | 3 | 5 | 6 | 5 | 4 | 1 | 4 | 3 | 4 | 2 | 3 | 6 | 3 | 2 | 4 | 7 | 10 | 3 | 1 | 1 | 2 | 1 | 4 | 10 | 3 | 3 | 0 | 4 | 2 | 3 | 8 | 4 | 5 | 3 | 5 | 8 | 7 | 3 | 7 | 7 | 8 | 5 |
Mac | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 2 | 1 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 2 | 1 | 0 | 0 | 3 | 2 | 1 | 2 | 3 | 0 | 1 |
Linux | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 2 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 3 | 2 | 6 | 2 | 0 | 3 | 1 | 0 | 1 | 1 | 1 | 1 | 2 | 3 | 0 | 4 | 1 | 2 | 2 | 1 | 1 | 1 | 0 | 2 | 0 | 0 | 2 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
PHP-Codebeautifier
This is a plugin for Sublime Text 3 that gives the option to run the phpcbf
Prerequisite
You need the PHP Codesniffer more precise the code beautifier from them.
Install
Clone this repo into your Packages folder of Sublime Text. If phpcbf
is in your path you don't need to do much setup. Otherwise create a user config for this plugin and set the path to your executable.
{
"path": "/path/to/your/phpcbf"
}
Please note that the executable has to be in the string.
Usage
The usage is pretty straight forward just press CTRL+ALT+F
or use the button in the Tools menu to execute it. For longer files give it a bit to run.
Configuration
Nearly all configuration options from phpcbf are bound to options in the settings file. Please refer to the documentiation for phpcbf to know what they do.
The three most important ones are
- path - Sets the path to the phpcbf executable
- level - Sets the code standard to follow. Default: psr-2
- patch - Sets whenether patch command should be used.