cline/coding-standard
Composer 安装命令:
composer require cline/coding-standard
包简介
Centralized coding standards for Cline projects using PHP-CS-Fixer, ECS, and Rector
README 文档
README
Opinionated PHP-CS-Fixer configuration with custom fixers and presets for modern PHP projects. Enforces strict coding standards, naming conventions, and architectural patterns.
PHPDoc presets also include an 80-column docblock prose wrapper so long
descriptions stay readable without relying on manual formatting.
The bundled Rector preset also enables PHP 8.5 pipe-operator migrations
for nested function calls and sequential assignment chains.
The Standard preset removes @author tags by default while still
allowing explicit opt-in to the legacy author-tag fixer.
It also removes @version tags by default while still allowing explicit
opt-in to the legacy version-tag fixer.
It removes the file-level license header by default while still allowing
explicit opt-in to the legacy header_comment rule.
It does not infer @psalm-immutable from PHP's shallow readonly
modifier. Add that semantic annotation intentionally, or explicitly opt
in to the deprecated fixer when every targeted class satisfies Psalm's
behavioral immutability contract.
For EasyCodingStandard configs, prefer Factory::configure(...) in
ecs.php; the older Factory::create(...) closure API remains
available for compatibility.
Requirements
Requires PHP 8.4+
Installation
composer require cline/coding-standard --dev
Documentation
- Basic Usage - Getting started with configuration and running fixers
- Custom Fixers - Architecture and naming convention fixers
- Presets - Standard, PHPDoc, PHPUnit, and Ordered rule presets
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.
cline/coding-standard 适用场景与选型建议
cline/coding-standard 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21.1k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 cline/coding-standard 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cline/coding-standard 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 21.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 21
- 依赖项目数: 74
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-02