·api-error-handling
</>

api-error-handling

用于 PHP REST API 的全面、标准化的错误响应系统,与 SweetAlert2 集成。在构建需要一致的错误格式、从数据库异常中提取特定错误消息、验证错误处理和无缝前端集成的 REST API 时使用。包括 PDOException 解析、业务规则提取和完整的 SweetAlert2 错误显示模式。

23安装·0热度·@peterbamuhigire

安装

$npx skills add https://github.com/peterbamuhigire/skills-web-dev --skill api-error-handling

如何安装 api-error-handling

通过命令行快速安装 api-error-handling AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/peterbamuhigire/skills-web-dev --skill api-error-handling
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:peterbamuhigire/skills-web-dev。

SKILL.md

查看原文

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
分类
</>开发工具
认证
收录时间
2026-02-20
更新时间
2026-03-10

Browse more skills from peterbamuhigire/skills-web-dev

快速解答

什么是 api-error-handling?

用于 PHP REST API 的全面、标准化的错误响应系统,与 SweetAlert2 集成。在构建需要一致的错误格式、从数据库异常中提取特定错误消息、验证错误处理和无缝前端集成的 REST API 时使用。包括 PDOException 解析、业务规则提取和完整的 SweetAlert2 错误显示模式。 来源:peterbamuhigire/skills-web-dev。

如何安装 api-error-handling?

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

这个 Skill 的源码在哪?

https://github.com/peterbamuhigire/skills-web-dev