承接 wondernetwork/wondersniffer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wondernetwork/wondersniffer

最新稳定版本:v2.0.0

Composer 安装命令:

composer require wondernetwork/wondersniffer

包简介

PHP Coding Standards for WonderNetwork

README 文档

README

WonderNetwork uses PHP_CodeSniffer to keep our code pretty. PSR-2 is the base of our standard, with a few extras thrown in. You can see what we've added and removed in the ruleset.xml, and check out our customizations in Sniffs.

(The astute may notice that the code in this repo doesn't conform to our own standard. We don't care.)

How to make your code look like our code

  1. Add wondersniffer to your Composer packages:
$ composer require --dev wondernetwork/wondersniffer
  1. Update composer:
$ composer update
  1. Add the WonderNetwork standard to your ruleset.xml:
<?xml version="1.0"?>
<ruleset>
    <rule ref="vendor/wondernetwork/wondersniffer/WonderNetwork" />
</ruleset>
  1. Run the sniffer against your codebase:
$ ./vendor/bin/phpcs --standard=ruleset.xml your-source-code

Credits

  • MediaWiki for (unwittingly!) providing the scaffolding for a customized standard.
  • CakePHP for providing the template MediaWiki used!

统计信息

  • 总下载量: 15.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2016-08-19