phpyh/coding-standard

PHPyh Coding Standard For PHP CS Fixer

2.6.1 2024-02-29 00:57 UTC

This package is auto-updated.

Last update: 2024-04-29 01:17:40 UTC


README

Latest Stable Version Total Downloads psalm-level type-coverage

Installation

composer require --dev phpyh/coding-standard

Usage with PHP CS Fixer

Update your .php-cs-fixer.dist.php:

<?php

use PHPyh\CodingStandard\PhpCsFixerCodingStandard;

$finder = PhpCsFixer\Finder::create()
    ->in(__DIR__.'/src')
    // ...
;

$config = (new PhpCsFixer\Config())
    ->setFinder($finder)
    // ...
;

(new PhpCsFixerCodingStandard())->applyTo($config, [
    // overriding rules
]);

return $config;