Search by

timmit / phpcs-framework-rules

timmit

PHPCS rules shared by aItem applications.

Package info

git.timmit.nl/timmit/phpcs-framework-rules

Type:phpcodesniffer-standard

pkg:composer/timmit/phpcs-framework-rules

Statistics

Installs: 31

Dependents: 0

Suggesters: 0

v1.1.0 2026-10-10 14:03 UTC

This package is auto-updated.

Last update: 2026-10-10 14:03:29 UTC


README

PHPCS rules shared by applications on an aItem based framework.

Install

composer require --dev timmit/phpcs-framework-rules

Allow the PHPCS Composer installer in the root composer.json:

{
    "config": {
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true
        }
    }
}

The installer registers the TiMMiT standard. Check with vendor/bin/phpcs -i.

Usage

PSR1 includes Squiz.Classes.ValidClassName, which only allows PascalCase. Exclude that sniff and use this standard instead:

<rule ref="PSR1">
    <exclude name="Squiz.Classes.ValidClassName"/>
</rule>

<rule ref="TiMMiT"/>

Class names

KindName
Abstract classlowercase a, then PascalCase: aItem, aConnector
Traitlowercase t, then PascalCase: tItem
Interfacelowercase i, then PascalCase: iProvider, iCorrespondence
Class, enumPascalCase: Sim

aitem, titem and iprovider are still reported: the part after the prefix must be PascalCase.