huangdijia/php-coding-standard

PHP Coding Standards for Personal Use.

v2.3.1 2024-05-31 03:18 UTC

This package is auto-updated.

Last update: 2024-07-01 00:08:49 UTC


README

PHP Coding Standard

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