The Libero PHP coding standard is a set of PHP_CodeSniffer rules applied to all Libero PHP projects. It is based on PSR-2.
Using Composer you can install the coding standard into your project:
composer require --dev libero/coding-standard
You can then find violations of the standard by running:
vendor/bin/phpcs --standard=Libero /path/to/some/file/to/sniff.php
Or automatically correct (at least some of) these violations by running:
vendor/bin/phpcbf --standard=Libero /path/to/some/file/to/sniff.php
See the PHP_CodeSniffer documentation for more details.
- Report a bug or request a feature on GitHub.
- Ask a question on the Libero Community Slack.
- Read the code of conduct.