Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Write solid PHP avoiding type juggling traps, array quirks, and common security pitfalls.
Write solid PHP avoiding type juggling traps, array quirks, and common security pitfalls.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
TopicFileLoose typing, ==, ===, type juggling, strict_typestypes.mdAssociative arrays, iteration, array functionsarrays.mdTraits, interfaces, visibility, late static bindingoop.mdEncoding, interpolation, heredoc, regexstrings.mdExceptions, error handling, @ operatorerrors.mdSQL injection, XSS, CSRF, input validationsecurity.mdPHP 8+ features, attributes, named args, matchmodern.md
== coerces types: "0" == false is true โ always use === for strict comparison in_array($val, $arr) uses loose comparison โ pass true as third param for strict strpos() returns 0 for match at start โ use === false not !strpos() Never concatenate SQL โ use prepared statements with PDO htmlspecialchars($s, ENT_QUOTES) all output โ prevents XSS isset() returns false for null โ use array_key_exists() to check key exists foreach ($arr as &$val) โ unset $val after loop or last ref persists static:: late binding vs self:: early binding โ static respects overrides @ suppresses errors โ avoid, makes debugging impossible Catch Throwable for both Error and Exception โ PHP 7+ declare(strict_types=1) per file โ enables strict type checking strlen() counts bytes โ use mb_strlen() for UTF-8 character count Objects pass by reference-like handle โ clone explicitly with clone $obj array_merge() reindexes numeric keys โ use + operator to preserve keys
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.