diff --git a/README.md b/README.md index 01c026c..f5c29a2 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ a relative path to a custom phpcs ruleset.xml file. ### Supported Coding Standards -In addition to standards provided by [default](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage#printing-a-list-of-installed-coding-standards) with PHP_CodeSniffer, the [Drupal](https://github.com/klausi/coder) and [WordPress](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) coding standards are supported. Here is the full list: +In addition to standards provided by [default](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage#printing-a-list-of-installed-coding-standards) with PHP_CodeSniffer, the [Drupal](https://github.com/klausi/coder), [WordPress](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards), and [Yii2](https://github.com/yiisoft/yii2-coding-standards) coding standards are supported. Here is the full list: * Drupal * DrupalPractice @@ -56,6 +56,7 @@ In addition to standards provided by [default](https://github.com/squizlabs/PHP_ * WordPress-Docs * WordPress-Extra * WordPress-VIP +* Yii2 * Zend ### Need help? diff --git a/composer.json b/composer.json index 74ccc3d..8b4d8d5 100644 --- a/composer.json +++ b/composer.json @@ -4,6 +4,7 @@ "barracudanetworks/forkdaemon-php": "^1.0", "danielstjules/stringy": "^2.3", "drupal/coder": "^8.2", - "wp-coding-standards/wpcs": "^0.10.0" + "wp-coding-standards/wpcs": "^0.10.0", + "yiisoft/yii2-coding-standards": "^2.0" } } diff --git a/composer.lock b/composer.lock index bf62a53..d6d27c6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "980cdeee581aa74de8a9c04a7c31acac", - "content-hash": "bd39cd75439a1e371ec1741e05ddd46f", + "hash": "4612d9b468952be10b148055025c4b7d", + "content-hash": "97bd0d728ba25cc3b8ce2b91f03ba653", "packages": [ { "name": "barracudanetworks/forkdaemon-php", @@ -357,6 +357,74 @@ "wordpress" ], "time": "2016-08-29 20:04:47" + }, + { + "name": "yiisoft/yii2-coding-standards", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/yiisoft/yii2-coding-standards.git", + "reference": "84660f44652aa3df30b7bebe5fb666fbe5523f66" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/yiisoft/yii2-coding-standards/zipball/84660f44652aa3df30b7bebe5fb666fbe5523f66", + "reference": "84660f44652aa3df30b7bebe5fb666fbe5523f66", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "squizlabs/php_codesniffer": ">=2.3.1" + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Qiang Xue", + "email": "qiang.xue@gmail.com", + "homepage": "http://www.yiiframework.com/", + "role": "Founder and project lead" + }, + { + "name": "Alexander Makarov", + "email": "sam@rmcreative.ru", + "homepage": "http://rmcreative.ru/", + "role": "Core framework development" + }, + { + "name": "Maurizio Domba", + "homepage": "http://mdomba.info/", + "role": "Core framework development" + }, + { + "name": "Carsten Brandt", + "email": "mail@cebe.cc", + "homepage": "http://cebe.cc/", + "role": "Core framework development" + }, + { + "name": "Timur Ruziev", + "email": "resurtm@gmail.com", + "homepage": "http://resurtm.com/", + "role": "Core framework development" + }, + { + "name": "Paul Klimov", + "email": "klimov.paul@gmail.com", + "role": "Core framework development" + } + ], + "description": "Yii PHP Framework Version 2 - Coding standard tools", + "homepage": "http://www.yiiframework.com/", + "keywords": [ + "codesniffer", + "framework", + "yii" + ], + "time": "2016-11-07 16:09:12" } ], "packages-dev": [],