2017 © Pedro Peláez
 

phpcodesniffer-standard yii2-coding-standards

Yii PHP Framework Version 2 - Coding standard tools

image

biaoqianwo/yii2-coding-standards

Yii PHP Framework Version 2 - Coding standard tools

  • Monday, February 12, 2018
  • by biaoqianwo
  • Repository
  • 0 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 48 Forks
  • 0 Open issues
  • 7 Versions
  • 15 % Grown

The README.md

Yii 2 Web Framework Coding Standard

This repository contains settings for Yii2 coding style for various tools., (*1)

Getting code

$ php composer.phar install biaoqianwo/yii2-coding-standards

PHP_Codesniffer

PHP_CodeSniffer coding standard, rule set and sniff token parsing classes for the Yii 2 Web Framework. Overally rules are based on PSR-2 standard with some minor exceptions and changes. Rules derived from PSR-2 standard and excluded in Yii2 standard were implemented (or planned to be) as sniff classes., (*2)

Rules could also be used for checking code style of an existing Yii2 applications., (*3)

Everything that is merged into main Yii2 development repository being checked with these rule set as well., (*4)

Using code style

After CodeSniffer is installed you can launch it with custom code style using the following syntax:, (*5)

$ ./vendor/bin/phpcs --extensions=php --standard=Yii2 /home/resurtm/work/Yii2MegaApp/

If you're using PhpStorm you can configure it to use CodeSniffer using Settings → PHP → Code Sniffer. Yii2 code style can be specified at Inspections → PHP → PHP Code Sniffer validation., (*6)

PhpStorm

Yii uses PSR-1 and PSR-2 as code style standards. You can choose these via SettingsCode StylePHPSet from...Predefined StylePSR1/PSR2., (*7)

More

中文Yii规范, (*8)

The Versions

12/02 2018

dev-master

9999999-dev http://www.yiiframework.com/

Yii PHP Framework Version 2 - Coding standard tools

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov
by Allen Li

framework codesniffer yii

12/02 2018

3.0.0

3.0.0.0 http://www.yiiframework.com/

Yii PHP Framework Version 2 - Coding standard tools

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov
by Allen Li

framework codesniffer yii

12/05 2017

2.0.3

2.0.3.0 http://www.yiiframework.com/

Yii PHP Framework Version 2 - Coding standard tools

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

framework codesniffer yii

07/11 2016

2.0.2

2.0.2.0 http://www.yiiframework.com/

Yii PHP Framework Version 2 - Coding standard tools

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

framework codesniffer yii

03/04 2015

2.0.1

2.0.1.0 http://www.yiiframework.com/

Yii PHP Framework Version 2 - Coding standard tools

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

framework codesniffer yii

11/07 2014

2.0.0

2.0.0.0 http://www.yiiframework.com/

Yii PHP Framework Version 2 - Coding standard tools

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

framework codesniffer yii

11/07 2014

2.0.0-rc

2.0.0.0-RC http://www.yiiframework.com/

Yii PHP Framework Version 2 - Coding standard tools

  Sources   Download

BSD-3-Clause

The Requires

 

by Paul Klimov

framework codesniffer yii