phpyh/coding-standard

PHPyh Coding Standard For PHP CS Fixer

Maintainers

👁 vudaltsov

Package info

github.com/phpyh/coding-standard

pkg:composer/phpyh/coding-standard

Statistics

Installs: 66 552

Dependents: 20

Suggesters: 0

Stars: 23

Open Issues: 1

3.0.1 2025-10-21 10:30 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT cee2748782f8762296673430cccd9a55d815bc41

  • Valentin Udaltsov <udaltsov.valentin.woop@gmail.com>

static analysisstandardsfixerStatic code analysis

This package is auto-updated.

Last update: 2026-05-21 11:46: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;