baijunyao / php-cs-fixer-config
Custom PHP CS Fixer
Installs: 1 859
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.2|^8.0
- adamwojs/php-cs-fixer-phpdoc-force-fqcn: ^2.0
- friendsofphp/php-cs-fixer: ^3.5
This package is auto-updated.
Last update: 2023-09-19 15:02:03 UTC
README
Uniformly manage the code style of all projects.
Installation
Require this package with composer using the following command:
composer require baijunyao/php-cs-fixer-config --dev
Usage
Create .php-cs-fixer.php in your project root directory.
<?php declare(strict_types=1); use Baijunyao\PhpCsFixer\Config; use PhpCsFixer\Finder; $finder = Finder::create()->in(__DIR__); return (new Config())->setFinder($finder);
Add .php-cs-fixer.cache
to .gitignore
Execute the following command.
vendor/bin/php-cs-fixer fix