This is set of PHP CodeSniffer, PHP CS Fixer, Psalm and Phpstan which is combined under this repository that checks and fixes your PHP code.
This package brings coding standard, static analysis and type support to your projects. Our goal is to increase developer's productivity and the application's overall health by finding as many coding standard and type-related bugs as possible.
The main PHP CodeSniffer and PHP CS Fixer code style is based on PSR-12 with custom rules to improve performance. To apply it in your project do the following:
composer require --dev biurad/coding-standard
#or
composer global require biurad/coding-standard
#vendor/bin/biurad-cs check <dir1> <dir2> <file1>....
vendor/bin/biurad-cs check src tests
#vendor/bin/biurad-cs fix <dir1> <dir2> <file1>....
vendor/bin/biurad-cs fix src tests
Use --help option to find out more about command usage