Skip to content

Navigation Menu

Sign up
This repository was archived by the owner on Aug 9, 2026. It is now read-only.
broadwayPublic archive

About

The coding standard of the Broadway project.

Resources

Stars

3 stars

Watchers

3 watching

Forks

Repository files navigation

broadway/coding-standard

The coding standard of the Broadway project.

build status

Installation

$ composer require --dev broadway/coding-standard

Configuration

PHP CS fixer

  1. create a .php-cs-fixer.php file referencing the .php-cs-fixer.dist.php template:
# .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;
  1. add .php_cs.cache to your .gitignore.

docheader

  1. copy the .docheader.dist template:
cp vendor/broadway/coding-standard/.docheader.dist ./.docheader
  1. modify the .docheader file is necessary.

Usage

$ vendor/bin/php-cs-fixer fix --allow-risky=yes --diff --verbose
$ vendor/bin/docheader check {src,test}

About

The coding standard of the Broadway project.

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /