phpcbf-cli

1.1.0 • Public • Published

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-cli

Usage

Exact same usage as phpcbf execuitable

phpcbf-cli --standard=PSR2 -n path/to/some/file.php

Readme

Keywords

Package Sidebar

Install

npm i phpcbf-cli

Weekly Downloads

5

Version

1.1.0

License

MIT

Unpacked Size

1.19 MB

Total Files

4

Last publish

Collaborators

  • nicksrandall