用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill php命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | PHP |
| slug | php |
| version | 1.0.1 |
| description | Write solid PHP avoiding type juggling traps, array quirks, and common security pitfalls. |
| metadata | {"clawdbot":{"emoji":"🐘","requires":{"bins":["php"]},"os":["linux","darwin","win32"]}} |
| Topic | File |
|---|---|
| Loose typing, ==, ===, type juggling, strict_types | types.md |
| Associative arrays, iteration, array functions | arrays.md |
| Traits, interfaces, visibility, late static binding | oop.md |
| Encoding, interpolation, heredoc, regex | strings.md |
| Exceptions, error handling, @ operator | errors.md |
| SQL injection, XSS, CSRF, input validation | security.md |
| PHP 8+ features, attributes, named args, match | modern.md |
== coerces types: "0" == false is true — always use === for strict comparisonin_array($val, $arr) uses loose comparison — pass true as third param for strictstrpos() returns 0 for match at start — use === false not !strpos()htmlspecialchars($s, ENT_QUOTES) all output — prevents XSSisset() returns false for null — use array_key_exists() to check key existsforeach ($arr as &$val) — unset $val after loop or last ref persistsstatic:: late binding vs self:: early binding — static respects overrides@ suppresses errors — avoid, makes debugging impossibleThrowable for both Error and Exception — PHP 7+declare(strict_types=1) per file — enables strict type checkingstrlen() counts bytes — use mb_strlen() for UTF-8 character countclone $objarray_merge() reindexes numeric keys — use + operator to preserve keys