Skip to content

✅ A library that provides coding standard and static analysis tools rulesets collection presets for Biurad PHP repositories.

License

Notifications You must be signed in to change notification settings

biurad/php-coding-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Check & Fix Your Code with Biurad Coding Standard

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:

Install the package

composer require --dev biurad/coding-standard
#or
composer global require biurad/coding-standard

Check the code for bugs

#vendor/bin/biurad-cs check <dir1> <dir2> <file1>....
vendor/bin/biurad-cs check src tests

Automatically fix the code style

#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

About

✅ A library that provides coding standard and static analysis tools rulesets collection presets for Biurad PHP repositories.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published