umanit/coding-standard

UmanIT PHP Coding Standard

Maintainers

Package info

github.com/umanit/php-coding-standard

Type:phpcodesniffer-standard

pkg:composer/umanit/coding-standard

Statistics

Installs: 1 438

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2025-09-30 13:53 UTC

This package is auto-updated.

Last update: 2026-03-12 14:42:08 UTC


README

A custom ruleset for PHP_CodeSniffer including:

  • Default PSR12 compliance.
  • Prohibit usage of certain PHP functions.
  • A bunch of rules from slevomat/coding-standard.
  • A custom rule that forces usage of @todo annotation and forbid other ones like TODO, FIXME or XXX.

Usage

Edit your phpcs.xml file to include the following:


<rule ref="UmanITCodingStandard" />