lsbproject / php-clean-code-rules
This repository contains the most respectful (by the author meaning) rules for linters and static code analysers
Installs: 158
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Type:phpcodesniffer-standard
Requires
- php: ^8.0
- escapestudios/symfony2-coding-standard: ^3.11
- phpstan/phpstan: ^0.12.33
- slevomat/coding-standard: ^7.0
- squizlabs/php_codesniffer: ^3.5
README
This repository contains the most respectful (by the author meaning) rules for linters and static code analysers.
This ruleset aims to transform the code to be like it was written by a single man improving readability and security of the whole project.
It covers psr-12
, symfony
and a lot of modern PHP features thanks to slevomat
project.
Installation
composer require lsbproject/php-clean-code-rules --dev
Usage
Include in your project a phpcs.xml
file with the following code:
<?xml version="1.0"?> <ruleset name="AcmeApp"> <config name="installed_paths" value="vendor/lsbproject/php-clean-code-rules" /> <rule ref="LSBProject" /> </ruleset>