baijunyao / php-cs-fixer-config
Custom PHP CS Fixer
Installs: 2 113
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Requires
This package is auto-updated.
Last update: 2024-11-18 01:33:31 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