huangdijia/php-coding-standard

PHP Coding Standards for Personal Use.

v2.3.4 2024-09-02 12:27 UTC

README

Latest Stable Version Total Downloads License PHP Version Require

Standards for Personal Use.

Usage

Install via composer.

composer require huangdijia/php-coding-standard --dev

Replace vendor/huangdijia/.php-cs-fixer.php.stub with your own .php-cs-fixer.php file.

cp vendor/huangdijia/php-coding-standard/.php-cs-fixer.php.stub .php-cs-fixer.php

Replace friendsofphp/php-cs-fixer with the wrapper provided by this package.

composer remove friendsofphp/php-cs-fixer --dev --no-update
composer require huangdijia/php-coding-standard --dev --no-update
composer update -o
cp vendor/huangdijia/php-coding-standard/.php-cs-fixer.php.stub .php-cs-fixer.php

License

MIT