PHP Coding Standards.

1.0.2 2021-06-27 20:57 UTC

This package is auto-updated.

Last update: 2022-07-18 22:46:36 UTC


phpcs logo

PHP Coding Standards

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e302e322d7265642e737667 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c4943454e53452d4d49542d6f72616e67652e737667



To install the package via composer, use the following:

$ composer require clivern/phpcs --dev

Place a file named .php-cs-fixer.dist.php that has following content in your project's root directory.



use Clivern\CodingStandards\Rules;
use PhpCsFixer\Config;
use PhpCsFixer\Finder;

$fileHeaderComment = <<<COMMENT
This file is part of Clivern/phpcs - PHP Coding Standards
(c) Clivern <>

$finder = Finder::create()

$overrides = [
    'declare_strict_types' => true,

return (new Config())
    ->setRules(Rules::PHP72($fileHeaderComment, $overrides));


For transparency into our release cycle and in striving to maintain backward compatibility, phpcs is maintained under the Semantic Versioning guidelines and release process is predictable and business-friendly.

See the Releases section of our GitHub project for changelogs for each release version of phpcs. It contains summaries of the most noteworthy changes made in each release.

Bug tracker

If you have any suggestions, bug reports, or annoyances please report them to our issue tracker at

Security Issues

If you discover a security vulnerability within phpcs, please send an email to


We are an open source, community-driven project so please feel free to join us. see the contributing guidelines for more details.


© 2021, clivern. Released under MIT License.

phpcs is authored and maintained by @clivern.