youdot/coding-standard

This package is abandoned and no longer maintained. No replacement package was suggested.

The coding standard applying to all Youdot PHP projects, based on Doctrine set of PHPCS rules, with additional checks.

Maintainers

Package info

github.com/Youdot/coding-standard-php

Issues

Type:phpcodesniffer-standard

pkg:composer/youdot/coding-standard

Transparency log

Statistics

Installs: 9 052

Dependents: 10

Suggesters: 0

Stars: 3

3.1.0 2020-12-09 09:41 UTC

This package is auto-updated.

Last update: 2026-08-12 14:58:07 UTC


README

Latest Stable Version Build status PHPStan

The Youdot Coding Standard is set of PHP_CodeSniffer rules applied to all Youdot projects. Youdot Coding Standard is heavily based on Doctrine Coding Standard.

Install

composer require youdot/coding-standard --dev

Usage

<!-- Include full Youdot Coding Standard -->
<rule ref="Youdot"/>
<!-- Or include full Youdot Coding Standard for Symfony-->
<rule ref="YoudotSymfony"/>

Additional Sniffs

  • SnakeCase Variable
  • Modifier Letter Apostrophe Character
  • Immutable classes through Psalm

To disable them:

<rule ref="Youdot">
    <exclude name="Youdot.NamingConventions.ValidVariableName"/>
    <exclude name="Youdot.Strings.ModifierLetterApostrophe"/>
</rule>

If you're using Psalm you can enable

<rule ref="YoudotAdditional.Classes.PsalmImmutable"/>