libero / coding-standard
Libero PHP coding standard
Installs: 3 764
Dependents: 6
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Type:phpcodesniffer-standard
Requires
- php: ^7.2
- dealerdirect/phpcodesniffer-composer-installer: ^0.4 || ^0.5
- slevomat/coding-standard: ^5.0
- squizlabs/php_codesniffer: ^3.4
Requires (Dev)
- ext-mbstring: *
- ext-tokenizer: *
- lstrojny/functional-php: ^1.8
- phpstan/phpstan: ^0.10
- phpstan/phpstan-phpunit: ^0.10
- phpunit/phpunit: ^7.3
- symfony/finder: ^4.1
README
The Libero PHP coding standard is a set of PHP_CodeSniffer rules applied to all Libero PHP projects. It is based on PSR-2.
Getting started
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.
Getting help
- Report a bug or request a feature on GitHub.
- Ask a question on the Libero Community Slack.
- Read the code of conduct.