zendframework/zend-coding-standard

Name: zend-coding-standard

Owner: Zend Framework

Description: Zend Framework Coding Standard

Created: 2016-11-09 14:52:01.0

Updated: 2017-12-05 10:52:07.0

Pushed: 2018-04-04 13:34:25.0

Homepage: null

Size: 710

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Zend Framework Coding Standard

Repository with all coding standard ruleset for Zend Framework repositories.

Installation
  1. Install the module via composer by running:

    mposer require --dev zendframework/zend-coding-standard
    
  2. Add composer scripts into your composer.json:

    ipts": {
    -check": "phpcs",
    -fix": "phpcbf"
    
    
  3. Create file phpcs.xml on base path of your repository with content:

    l version="1.0"?>
    eset name="Zend Framework Coding Standard">
    rule ref="./vendor/zendframework/zend-coding-standard/ruleset.xml"/>
    
    !-- Paths to check -->
    file>config</file>
    file>src</file>
    file>test</file>
    leset>
    

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

Usage

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.