什么是 api-error-handling?
用于 PHP REST API 的全面、标准化的错误响应系统,与 SweetAlert2 集成。在构建需要一致的错误格式、从数据库异常中提取特定错误消息、验证错误处理和无缝前端集成的 REST API 时使用。包括 PDOException 解析、业务规则提取和完整的 SweetAlert2 错误显示模式。 来源:peterbamuhigire/skills-web-dev。
用于 PHP REST API 的全面、标准化的错误响应系统,与 SweetAlert2 集成。在构建需要一致的错误格式、从数据库异常中提取特定错误消息、验证错误处理和无缝前端集成的 REST API 时使用。包括 PDOException 解析、业务规则提取和完整的 SweetAlert2 错误显示模式。
通过命令行快速安装 api-error-handling AI 技能到你的开发环境
来源:peterbamuhigire/skills-web-dev。
Implement comprehensive, standardized error response system for PHP REST APIs with consistent JSON envelopes, specific error message extraction, and SweetAlert2 integration.
Security Baseline (Required): Always load and apply the Vibe Security Skill for PHP API work. Do not leak sensitive data in responses or logs.
Cross-Platform: APIs deploy to Windows (dev), Ubuntu (staging), Debian (production), all running MySQL 8.x. Use utf8mb4unicodeci collation. Match file/directory case exactly in require paths (Linux is case-sensitive). Use forward slashes in paths.
用于 PHP REST API 的全面、标准化的错误响应系统,与 SweetAlert2 集成。在构建需要一致的错误格式、从数据库异常中提取特定错误消息、验证错误处理和无缝前端集成的 REST API 时使用。包括 PDOException 解析、业务规则提取和完整的 SweetAlert2 错误显示模式。 来源:peterbamuhigire/skills-web-dev。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/peterbamuhigire/skills-web-dev --skill api-error-handling用于 PHP REST API 的全面、标准化的错误响应系统,与 SweetAlert2 集成。在构建需要一致的错误格式、从数据库异常中提取特定错误消息、验证错误处理和无缝前端集成的 REST API 时使用。包括 PDOException 解析、业务规则提取和完整的 SweetAlert2 错误显示模式。 来源:peterbamuhigire/skills-web-dev。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/peterbamuhigire/skills-web-dev --skill api-error-handling 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/peterbamuhigire/skills-web-dev