php-docs

php-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 534 tokens per session (3,337 once invoked), scanned A, original, MIT.

A reference for PHP, a programming language widely used to build web applications and server-side programs. It covers the language, installation, web-server setup, types, functions, and classes.

In plain words
What is it for?
Use it when writing or debugging PHP, handling requests and files, defining types and classes, configuring PHP settings, and connecting PHP to a web server.
Why use it?
It gives developers a detailed source for understanding PHP code and configuring the environment that runs it.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/php
Any agent
npx skills add pledgeandgrow/pledge-skills --skill php
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for php-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/php.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/php)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/php"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/php.svg" alt="Measured on agentmods" height="20"></a>
Per session 534 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,337 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00534 $0.03337
Opus 5 $0.00267 $0.01669
Sonnet 5 $0.00107 $0.00667
Haiku 4.5 $0.00053 $0.00334

Measured 5d ago against content hash 75cda8a3d461, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

php-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/php/SKILL.md · 314 lines

How it starts

The opening of the file, as written. The whole thing — 314 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PHP Expert (8.5)

Official Documentation: https://www.php.net/manual/en/

Quick Reference

Topic File
Installation (Linux, macOS, Windows, Docker), php.ini config, web server setup, SAPI types getting-started.md
PHP tags, escaping HTML, instruction separation, comments basics-syntax.md
Types (null, bool, int, float, string, array, object, callable, iterable, mixed, void, never, resource), type declarations, type juggling types.md
Variables, scope, predefined variables, variable variables, external sources variables.md
Constants, define(), const, magic constants, predefined constants constants.md
Operators (arithmetic, assignment, bitwise, comparison, error control, execution, logical, string, array, type, functional), precedence operators.md
Control structures (if, else, elseif, while, do-while, for, foreach, switch, match, declare, return, require, include, goto) control-structures.md
Functions, parameters, arguments, returning values, anonymous, arrow, first-class callable functions.md
Classes, objects, properties, property hooks, constants, autoloading, constructors, visibility, inheritance, static, abstract, interfaces, traits, anonymous classes, overloading, magic methods, final, cloning, late static bindings, serialization, covariance/contravariance, lazy objects classes-objects.md
Namespaces, sub-namespaces, importing/aliasing, global space, name resolution namespaces.md
Enumerations (basic, backed, methods, static methods, constants, traits, listing, serialization) enums.md
Errors, error levels, error handling, error reporting errors.md
Exceptions, try/catch/finally, extending exceptions, multiple catch types, global handler exceptions.md
Generators, yield, yield from, Generator class, comparison with Iterator generators.md
Fibers, Fiber class, suspend/resume/throw, full-stack interruptible functions fibers.md
Attributes, syntax, declaring attribute classes, reading with Reflection attributes.md
References, reference counting, passing by reference, returning references references.md
Predefined variables ($_SERVER, $_GET, $_POST, $_SESSION, $_ENV, $GLOBALS), predefined exceptions, predefined interfaces/classes, predefined attributes predefined.md
Security (sessions, filesystem, database, SQL injection, error reporting, user data, hiding PHP, keeping current) security.md
Features (HTTP auth, cookies, sessions, file uploads, remote files, connection handling, persistent DB connections, CLI, garbage collection, DTrace) features.md
Standard library: strings, arrays, arrays sorting, function handling, output control, error handling stdlib-core.md
Standard library: date/time (DateTime, DateTimeImmutable, DateTimeZone, DateInterval, DatePeriod), calendar, HRTime stdlib-date.md
Standard library: math, BCMath, GMP, statistics, RoundingMode enum stdlib-math.md
Standard library: hash, OpenSSL, password hashing, sodium, Rnp, Xpass stdlib-crypto.md
Standard library: JSON, SimdJSON, cURL, DOM, SimpleXML, XMLReader, XMLWriter, XSL, XML-RPC stdlib-xml-json.md
Standard library: PDO, MySQL (mysqli), PostgreSQL, SQLite3, MongoDB, OCI8, ODBC, DBA, SQLSRV stdlib-database.md
Standard library: SPL (datastructures, iterators, exceptions, functions), reflection, fileinfo, filesystem, directories stdlib-spl-io.md
Standard library: compression (Phar, Zip, Zlib, Bzip2, Rar, LZF), intl, iconv, mbstring, gettext, GD, ImageMagick, Exif stdlib-extended.md
Standard library: PCNTL, POSIX, program execution, FFI, OPcache, session, filter, ctype, FTP, IMAP, mail, SOAP, OAuth, readline, APCu stdlib-services.md
Standard library: PCRE regex (preg_match, preg_replace, preg_split, preg_grep), URL functions (parse_url, http_build_query, urlencode), stream functions and contexts, network functions (DNS, IP, headers), variable handling (var_dump, serialize, debug_backtrace), PHP info functions stdlib-regex-net.md
Standard library: server-specific (Apache, LiteSpeed, FPM), Solr, FDF, GnuPG, wkhtmltox, PS, XLSWriter, Radius, GeoIP, FANN, Igbinary, Lua, CommonMark, Event, Yar, Eio, Ev, Expect, Enchant, Gender, Quickhash, dBase, Firebird, CUBRID, IBM DB2, Componere stdlib-misc.md
Composer, PIE, PECL, autoloading, dependency management, packaging composer.md
PHP 8.5 new features, 8.4/8.3/8.2/8.1/8.0 migration, deprecated features, backward incompatible changes whats-new.md

Read the full file on GitHub · 314 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 314 lines · 534 tokens per session scan A 75cda8a3d461

Subscribe to this mod's changes

php-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 534 tokens to every session and 3,337 once invoked, about $0.0027 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.