php-code-style
仓库创建 2026年7月15日最近提交 7 天前SkillHot 收录 4 天前
这个 Skill 做什么
审查 PHP 代码的严格类型、PHP 8.x 新特性采纳、PSR-12 风格、命名、错误处理与安全性,帮助代码升级或规范化落地。适合做风格统一、类型安全审查或引入现代 PHP 特性时使用。规则会根据 settings.json 中检测到的 php_version 分级应用,给出兼容性和迁移建议。
▸ 展开 SKILL.md 英文原文
PHP code style review: strict typing, modern PHP 8.x features, PSR-12 compliance, naming conventions, error handling, performance, and security. Version-gated by detected php_version. Use when reviewing PHP code for style, type safety, or modern PHP feature adoption.
0
Stars
0
Forks
10
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Zolletta/zolletta-metaskill/main/php-code-style/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Zolletta/zolletta-metaskill/main/php-code-style/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# PHP Code Style Review PHP code for type safety, modern PHP feature adoption, PSR-12 compliance, naming conventions, error handling, performance, and security. Rules are version-gated by the detected `php_version` from `settings.json`. > **Configuration source**: all project-level configuration (tool availability, rule toggles, PHP version) is read from `settings.json` — specifically the `php.tools.*` objects (availability + effective config), `php.code_style` (rule toggles), and `php.php_version`. These are populated by `setup` from `composer.json` and declarative config files. Do not read `composer.json` directly; do not hardcode fallback defaults. See the parent `SKILL.md` for the setu
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有