2017 © Pedro Peláez
 

library zend-coding-standard

Zend Framework coding standard

image

zendframework/zend-coding-standard

Zend Framework coding standard

  • Wednesday, April 4, 2018
  • by zendframework
  • Repository
  • 29 Watchers
  • 28 Stars
  • 38,424 Installations
  • 249 Dependents
  • 0 Suggesters
  • 5 Forks
  • 3 Open issues
  • 4 Versions
  • 22 % Grown

The README.md

Zend Framework Coding Standard

Repository abandoned 2019-12-31

This repository has moved to laminas/laminas-coding-standard., (*1)

Repository with all coding standard ruleset for Zend Framework repositories., (*2)

Installation

  1. Install the module via composer by running:, (*3)

    $ composer require --dev zendframework/zend-coding-standard
    
  2. Add composer scripts into your composer.json:, (*4)

    "scripts": {
     "cs-check": "phpcs",
     "cs-fix": "phpcbf"
    }
    
  3. Create file phpcs.xml on base path of your repository with content:, (*5)

    
    <ruleset name="Zend Framework Coding Standard">
       <rule ref="./vendor/zendframework/zend-coding-standard/ruleset.xml"/>
    
       
       <file>config</file>
       <file>src</file>
       <file>test</file>
    </ruleset>
    

You can add or exclude some locations in that file. For a reference please see: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml, (*6)

Usage

  • To run checks only:, (*7)

    $ composer cs-check
    
  • To automatically fix many CS issues:, (*8)

    $ composer cs-fix
    

The Versions

04/04 2018

dev-feature/license-headers

dev-feature/license-headers

Zend Framework coding standard

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zendframework zf coding standard

04/04 2018

dev-feature/sniffs

dev-feature/sniffs

Zend Framework coding standard

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zendframework zf coding standard

09/11 2016

dev-master

9999999-dev

Zend Framework coding standard

  Sources   Download

BSD-3-Clause

The Requires

 

zf coding standard

09/11 2016

1.0.0

1.0.0.0

Zend Framework coding standard

  Sources   Download

BSD-3-Clause

The Requires

 

zf coding standard