northrook / php-cs
Custom PHP Coding Standards for Northrook projects.
dev-main
2024-12-22 15:09 UTC
Requires
- php: >=8.2
- erickskrauch/php-cs-fixer-custom-fixers: @stable
- friendsofphp/php-cs-fixer: @stable
- jetbrains/phpstorm-attributes: @stable
- phpstan/phpstan: @stable
This package is auto-updated.
Last update: 2024-12-22 15:09:27 UTC
README
Using PHP-CS-Fixer.
This coding standard deviates from the PSR, focusing on comfort and ergonomics for me.
Important
This package is still in development, and intended for internal use.
Installation
This package is not (yet) available on packagist, but you can install manually by editing your coposer.json
file:
{ "require-dev": { "northrook/php-cs": "dev-main" }, "repositories": [ { "type": "vcs", "url": "https://github.com/northrook/php-cs" } ] }
Then copy the included .php-cs-fixer.dist.php
file from
/vendor/northrook/php-cs/.php-cs-fixer.dist.php
to the project root.
Usage
Run the fixer mnually in the console:
./vendor/bin/php-cs-fixer fix
Your IDE might also have an integration, like PhpStorm.