โ† All skills
Tencent SkillHub ยท Developer Tools

PHP

Write solid PHP avoiding type juggling traps, array quirks, and common security pitfalls.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Write solid PHP avoiding type juggling traps, array quirks, and common security pitfalls.

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, arrays.md, errors.md, modern.md, oop.md, security.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

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.

Upgrade existing

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.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.1

Documentation

ClawHub primary doc Primary doc: SKILL.md 2 sections Open source page

Quick Reference

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

Critical Rules

== 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

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
6 Docs
  • SKILL.md Primary doc
  • arrays.md Docs
  • errors.md Docs
  • modern.md Docs
  • oop.md Docs
  • security.md Docs