·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-11

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