定制 greencape/coding-standards 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

greencape/coding-standards

最新稳定版本:1.0.1

Composer 安装命令:

composer require greencape/coding-standards

包简介

Composer installable Coding Standards Definitions.

README 文档

README

This repository includes Coding Standard definitions for PHP CodeSniffer 2.x for use with Composer.

Currently, these Coding Standards are included:

Requirements

Installation

Add this package to your requirements.

$ composer require --dev greencape/coding-standards:~1

The PHP CodeSniffer tool is installed automatically in a matching version.

You can verify a successful install with

$ ./vendor/bin/phpcs -i
The installed coding standards are MySource, PSR2, Squiz, Zend, PHPCS, PSR1, PEAR, WordPress and Joomla

Running

You can use the installed Joomla standard like:

$ ./vendor/bin/phpcs --standard=Joomla path/to/code
$ ./vendor/bin/phpcbf --standard=Joomla path/to/code

You can use the installed WordPress standard like:

$ ./vendor/bin/phpcs --standard=WordPress path/to/code
$ ./vendor/bin/phpcbf --standard=WordPress path/to/code

In both cases, the second (phpcbf) line will fix some issues automatically. However, this part is work in progress, and will improve over time.

Contributing

If you want to contribute to this project, you can

  • fork this repo, code, and send a Pull Request
  • file an issue in the Issue Tracker

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固