定制 qubus/qubus-coding-standard 二次开发

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

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

qubus/qubus-coding-standard

最新稳定版本:v2.1.2

Composer 安装命令:

composer require qubus/qubus-coding-standard

包简介

Qubus Coding Standard

README 文档

README

Coding standard rulesets for QubusPHP.

QubusPHP coding standards loosely follows the Laminas Coding Style Guide with a few exceptions:

  1. Abstract classes MUST NOT be prefixed/suffixed with Abstract.
  2. Traits MUST NOT be prefixed/suffixed with Trait.
  3. Interfaces MUST NOT be prefixed/suffixed with Interface or Contract.
  4. Exceptions MUST be suffixed with Exception.
  5. File name of classes must be in PascalCase.
  6. File names of functions must be in lowercase and can be delimited with _.
  7. Custom functions must be namespaced and imported when used.
  8. Classes must be coded to interfaces and follow SOLID.

Installation

  1. Install the coding standard as a dependency of your project:
$ composer require --dev qubus/qubus-coding-standard
  1. Add coding standard to the PHP_CodeSniffer install path:
 vendor/bin/phpcs --config-set installed_paths vendor/qubus/qubus-coding-standard
  1. Run the standards:
 vendor/bin/phpcs /path/to/code

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-26