定制 phoneburner/coding-standard 二次开发

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

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

phoneburner/coding-standard

最新稳定版本:v1.0.1

Composer 安装命令:

composer require phoneburner/coding-standard

包简介

PhoneBurner PHP Coding Standards

README 文档

README

Custom PHP_CodeSniffer rules for PhoneBurner projects based on the PER Coding Style 2.0 standard, and using customized rules from the Slevomat Coding Standard project.

Installation and Contributing

This is a dockerized project, with a Makefile to help with common tasks. To get started, clone the repository and run the following command to install the dependencies:

make

Standards:

  1. Variables should be in snake_case unless they are shadowing parameters defined in function or method from a third-party library. This caveat is intended to prevent problems with named parameters, and vendor compatibility.)
  2. Methods and functions, except for class __construct and __destruct methods, MUST have a defined return type.
  3. Anonymous and arrow functions MUST have a defined parameter and return types.
  4. Parameters MUST have defined types, unless they are extending/implementing a third-party library method or function that does not allow it.
  5. Class properties MUST have defined types.
  6. Enum cases must be in PascalCase, unless they are less than 4 characters long, and do not conflict with class constants.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • 开发语言: Makefile

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-31