2017 © Pedro Peláez
 

library coding-standard

The coding standard of the Broadway project.

image

broadway/coding-standard

The coding standard of the Broadway project.

  • Sunday, July 22, 2018
  • by othillo
  • Repository
  • 4 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

broadway/coding-standard

The coding standard of the Broadway project., (*1)

build status, (*2)

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}

The Versions

22/07 2018

dev-master

9999999-dev

The coding standard of the Broadway project.

  Sources   Download

MIT

The Requires

 

by Avatar othillo

22/07 2018

0.1

0.1.0.0

The coding standard of the Broadway project.

  Sources   Download

MIT

The Requires

 

by Avatar othillo