jparkinson1991/phpcodesniffer-standards
Composer 安装命令:
composer require jparkinson1991/phpcodesniffer-standards
包简介
Custom PHP_Codesniffer standards
README 文档
README
This package provides custom and adapted coding standards for use with squizlabs/PHP_CodeSniffer
Coding Standards
The following standards are provided by this package
JPSR-12
An adaptation of the PSR-12 coding standard with some minor tweaks. View Documentation
Getting Started
Using the standards provided by this package is a simple as using composer to require within your project.
Prerequisites
This package requires squizlabs/php_codesniffer ^3.0 if you are using an older version of PHP_CodeSniffer you will not be able to install these standards.
Installing
This package is built on top of dealerdirect/phpcodesniffer-composer-installer so installation is as simple as
$ composer require jparkinson1991/phpcodesniffer-standards
After requiring this package in your project it will be installed and available for use with PHP_CodeSniffer
$ ./vendor/bin/phpcs -i
The installed coding standards are PEAR, Zend, PSR2, MySource, Squiz, PSR1, PSR12 and JPSR12
Usage
Use the standards provided by this package in the exact same way you would use the defaults provided by PHP_Codesniffer. Using JPSR12 as an example.
$ ./vendor/bin/phpcs --standard JPSR12
// phpcs.xml
<rule ref="JPSR12"/>
Versioning
SemVer is used for versioning. For the versions available, see the tags on this repository.
Authors
- Josh Parkinson - Hacking and slashing
License
This project is licensed under the GNU GPLv3 License - see the LICENSE file for details
Acknowledgments
- dealerdirect For the coding standards installer plugin
- Drupal For the multi keyword control structure sniff
- PHP-FIG For PSR-12
- squizlabs For PHP_Codesniffer
jparkinson1991/phpcodesniffer-standards 适用场景与选型建议
jparkinson1991/phpcodesniffer-standards 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.68k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2020 年 05 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 jparkinson1991/phpcodesniffer-standards 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jparkinson1991/phpcodesniffer-standards 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 9.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 31
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2020-05-15