https://github.com/biurad/php-coding-standard
✅ A library that provides coding standard and static analysis tools rulesets collection presets for Biurad PHP repositories.
https://github.com/biurad/php-coding-standard
biurad code-standard php php-cs-fixer phpcs phpstan psalm static-analysis
Last synced: 4 months ago
JSON representation
✅ A library that provides coding standard and static analysis tools rulesets collection presets for Biurad PHP repositories.
- Host: GitHub
- URL: https://github.com/biurad/php-coding-standard
- Owner: biurad
- License: bsd-3-clause
- Created: 2020-06-22T03:44:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T09:44:44.000Z (about 4 years ago)
- Last Synced: 2025-01-08T06:36:20.949Z (6 months ago)
- Topics: biurad, code-standard, php, php-cs-fixer, phpcs, phpstan, psalm, static-analysis
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Check & Fix Your Code with Biurad Coding Standard
This is set of [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), [Psalm](https://github.com/vimeo/psalm) and [Phpstan](https://github.com/phpstan/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](https://github.com/squizlabs/PHP_CodeSniffer) and [PHP CS Fixer](https://github.com/FriendsOfPHP/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
```sh
composer require --dev biurad/coding-standard
#or
composer global require biurad/coding-standard
```## Check the code for bugs
```sh
#vendor/bin/biurad-cs check ....
vendor/bin/biurad-cs check src tests
```## Automatically fix the code style
```sh
#vendor/bin/biurad-cs fix ....
vendor/bin/biurad-cs fix src tests
```> Use --help option to find out more about command usage