phpcbf-cli
v1.1.0
Published
phpcbf with normalized exit codes
Readme
phpcbf-cli
phpcbf is a great tool for linting and formatting PHP code but it uses non-standard exit codes which cause it to not be compatible with other tools. The usage of this tool is exactly the same as phpcbf however it standardizes it's exit code.
Install
This tool requries that you have phpcbf installed and on your path. Installation instructions can be found here: https://github.com/squizlabs/PHP_CodeSniffer
t npm i -D phpcbf-cliUsage
Exact same usage as phpcbf execuitable
phpcbf-cli --standard=PSR2 -n path/to/some/file.php