·php-best-practices
</>

php-best-practices

asyrafhussin/agent-skills

PHP 8.5+ 现代模式、PSR 标准和 SOLID 原则。在审查 PHP 代码、检查类型安全、审核代码质量或确保 PHP 最佳实践时使用。触发“审查 PHP”、“检查 PHP 代码”、“审核 PHP”或“PHP 最佳实践”。

285安装·20热度·@asyrafhussin

安装

$npx skills add https://github.com/asyrafhussin/agent-skills --skill php-best-practices

SKILL.md

Modern PHP 8.x patterns, PSR standards, type system best practices, and SOLID principles. Contains 45+ rules for writing clean, maintainable PHP code.

| 1 | Type System | CRITICAL | type- | | 2 | Modern Features | CRITICAL | modern- | | 3 | PSR Standards | HIGH | psr- | | 4 | SOLID Principles | HIGH | solid- | | 5 | Error Handling | HIGH | error- | | 6 | Performance | MEDIUM | perf- | | 7 | Security | CRITICAL | sec- |

PHP 8.5+ 现代模式、PSR 标准和 SOLID 原则。在审查 PHP 代码、检查类型安全、审核代码质量或确保 PHP 最佳实践时使用。触发“审查 PHP”、“检查 PHP 代码”、“审核 PHP”或“PHP 最佳实践”。 来源:asyrafhussin/agent-skills。

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/asyrafhussin/agent-skills --skill php-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/asyrafhussin/agent-skills --skill php-best-practices
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 php-best-practices?

PHP 8.5+ 现代模式、PSR 标准和 SOLID 原则。在审查 PHP 代码、检查类型安全、审核代码质量或确保 PHP 最佳实践时使用。触发“审查 PHP”、“检查 PHP 代码”、“审核 PHP”或“PHP 最佳实践”。 来源:asyrafhussin/agent-skills。

如何安装 php-best-practices?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/asyrafhussin/agent-skills --skill php-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/asyrafhussin/agent-skills