qubus / qubus-coding-standard
Qubus Coding Standard
Installs: 149
Dependents: 24
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
Type:phpcodesniffer-standard
Requires
- php: >=8.4
- dealerdirect/phpcodesniffer-composer-installer: ^1
- pestphp/pest: ^4.0
- phpunit/phpunit: ^12.3
- slevomat/coding-standard: ^8
- squizlabs/php_codesniffer: ^3
- webimpress/coding-standard: ^1
This package is auto-updated.
Last update: 2025-08-30 15:38:59 UTC
README
Coding standard rulesets for QubusPHP.
QubusPHP coding standards loosely follows the Laminas Coding Style Guide with a few exceptions:
- Abstract classes MUST NOT be prefixed/suffixed with
Abstract
. - Traits MUST NOT be prefixed/suffixed with
Trait
. - Interfaces MUST NOT be prefixed/suffixed with
Interface
orContract
. - Exceptions MUST be suffixed with
Exception
. - File name of classes must be in PascalCase.
- File names of functions must be in lowercase and can be delimited with
_
. - Custom functions must be namespaced and imported when used.
- Classes must be coded to interfaces and follow SOLID.
Installation
- Install the coding standard as a dependency of your project:
$ composer require --dev qubus/qubus-coding-standard
- Add coding standard to the PHP_CodeSniffer install path:
vendor/bin/phpcs --config-set installed_paths vendor/qubus/qubus-coding-standard
- Run the standards:
vendor/bin/phpcs /path/to/code