broadway / coding-standard
The coding standard of the Broadway project.
Installs: 35 392
Dependents: 25
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 1
Open Issues: 1
Language:Makefile
pkg:composer/broadway/coding-standard
Requires
- php: >=7.3
- friendsofphp/php-cs-fixer: ^3.0
- malukenho/docheader: ^0.1.7|1.0
This package is auto-updated.
Last update: 2025-10-11 19:38:50 UTC
README
The coding standard of the Broadway project.
Installation
$ composer require --dev broadway/coding-standard
Configuration
PHP CS fixer
- create a .php-cs-fixer.phpfile referencing the.php-cs-fixer.dist.phptemplate:
# .php-cs-fixer.php <?php $config = require 'vendor/broadway/coding-standard/.php-cs-fixer.dist.php'; $config->setFinder( \PhpCsFixer\Finder::create() ->in([ __DIR__ . '/src', __DIR__ . '/test', ]) ); return $config;
- add .php_cs.cacheto your.gitignore.
docheader
- copy the .docheader.disttemplate:
cp vendor/broadway/coding-standard/.docheader.dist ./.docheader
- modify the .docheaderfile is necessary.
Usage
$ vendor/bin/php-cs-fixer fix --allow-risky=yes --diff --verbose
$ vendor/bin/docheader check {src,test}