{
  "schemaVersion": "1.0",
  "item": {
    "slug": "php",
    "name": "PHP",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/php",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/php",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/php",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=php",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "arrays.md",
      "errors.md",
      "modern.md",
      "oop.md",
      "security.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "php",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T20:36:16.453Z",
      "expiresAt": "2026-05-13T20:36:16.453Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=php",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=php",
        "contentDisposition": "attachment; filename=\"php-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "php"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/php"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/php",
    "agentPageUrl": "https://openagent3.xyz/skills/php/agent",
    "manifestUrl": "https://openagent3.xyz/skills/php/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/php/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Quick Reference",
        "body": "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"
      },
      {
        "title": "Critical Rules",
        "body": "== coerces types: \"0\" == false is true — always use === for strict comparison\nin_array($val, $arr) uses loose comparison — pass true as third param for strict\nstrpos() returns 0 for match at start — use === false not !strpos()\nNever concatenate SQL — use prepared statements with PDO\nhtmlspecialchars($s, ENT_QUOTES) all output — prevents XSS\nisset() returns false for null — use array_key_exists() to check key exists\nforeach ($arr as &$val) — unset $val after loop or last ref persists\nstatic:: late binding vs self:: early binding — static respects overrides\n@ suppresses errors — avoid, makes debugging impossible\nCatch Throwable for both Error and Exception — PHP 7+\ndeclare(strict_types=1) per file — enables strict type checking\nstrlen() counts bytes — use mb_strlen() for UTF-8 character count\nObjects pass by reference-like handle — clone explicitly with clone $obj\narray_merge() reindexes numeric keys — use + operator to preserve keys"
      }
    ],
    "body": "Quick Reference\nTopic\tFile\nLoose typing, ==, ===, type juggling, strict_types\ttypes.md\nAssociative arrays, iteration, array functions\tarrays.md\nTraits, interfaces, visibility, late static binding\toop.md\nEncoding, interpolation, heredoc, regex\tstrings.md\nExceptions, error handling, @ operator\terrors.md\nSQL injection, XSS, CSRF, input validation\tsecurity.md\nPHP 8+ features, attributes, named args, match\tmodern.md\nCritical Rules\n== coerces types: \"0\" == false is true — always use === for strict comparison\nin_array($val, $arr) uses loose comparison — pass true as third param for strict\nstrpos() returns 0 for match at start — use === false not !strpos()\nNever concatenate SQL — use prepared statements with PDO\nhtmlspecialchars($s, ENT_QUOTES) all output — prevents XSS\nisset() returns false for null — use array_key_exists() to check key exists\nforeach ($arr as &$val) — unset $val after loop or last ref persists\nstatic:: late binding vs self:: early binding — static respects overrides\n@ suppresses errors — avoid, makes debugging impossible\nCatch Throwable for both Error and Exception — PHP 7+\ndeclare(strict_types=1) per file — enables strict type checking\nstrlen() counts bytes — use mb_strlen() for UTF-8 character count\nObjects pass by reference-like handle — clone explicitly with clone $obj\narray_merge() reindexes numeric keys — use + operator to preserve keys"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/php",
    "publisherUrl": "https://clawhub.ai/ivangdavila/php",
    "owner": "ivangdavila",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/php",
    "downloadUrl": "https://openagent3.xyz/downloads/php",
    "agentUrl": "https://openagent3.xyz/skills/php/agent",
    "manifestUrl": "https://openagent3.xyz/skills/php/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/php/agent.md"
  }
}