php-knowledge-patch

php-knowledge-patch is a skill for Claude Code from Nevaberry/nevaberry-plugins. It costs 7 tokens per session (3,122 once invoked), scanned A, original, MIT.

A reference guide for keeping PHP code working across PHP releases. It covers changed language behavior, deprecated features, deployment settings, databases, and PHP extension interfaces.

In plain words
What is it for?
Use it when upgrading PHP, fixing deprecation warnings or changed errors, configuring PHP deployments, or adapting code that uses database, networking, filesystem, or extension APIs.
Why use it?
PHP releases can remove old features or change errors and defaults, causing existing applications to fail or behave differently. The guide helps identify these compatibility issues before or during a migration.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the knowledge-patch plugin — 197 skills, 1 hook shipped together

Good fit Use it when upgrading PHP, fixing deprecation warnings or changed errors, configuring PHP deployments, or adapting code that uses database, networking, filesystem, or extension APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nevaberry/nevaberry-plugins/php-knowledge-patch
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.

Any agent
npx skills add Nevaberry/nevaberry-plugins --skill php-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 197 skills, 1 hook.

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-knowledge-patch

README.md
[![agentmods](https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/php-knowledge-patch/github.svg)](https://agentmods.dev/skills/nevaberry/nevaberry-plugins/php-knowledge-patch)
Your own site
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/php-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/php-knowledge-patch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for php-knowledge-patch

Your own site · 80×15
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/php-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/php-knowledge-patch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,122 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00007 $0.03122
Opus 5.5 $0.00003 $0.01249
Sonnet 5.5 $0.00001 $0.00624
Haiku 4.5 $0.00001 $0.00312

Measured today against content hash b30511a30545, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

php-knowledge-patch 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 today.

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.

plugins/knowledge-patch/patches-claude/php-knowledge-patch/SKILL.md · 212 lines

How it starts

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

PHP Compatibility Guidance

Load this skill when migrating PHP code, addressing deprecations or changed error behavior, configuring PHP deployments, or using the extension APIs below. Read the relevant topic reference for full conditions, examples, and release attributions. The quick reference prioritizes breaking changes and deprecations.

Reference index

Reference Topics
Language and runtime Declarations, attributes, cloning, reflection, comparisons, diagnostics, serialization, WeakMap, FFI
Configuration, filesystem, and SPL Security updates, builds, CLI, INI, OPcache, FPM, sessions, files, CSV, iterators, streams, archives
Databases and PDO DSNs, SQL parsing, fetch modes, MySQLi, PostgreSQL, SQLite, Firebird, ODBC, OCI8
Networking, crypto, and processes cURL, OpenSSL, TLS, Sodium, sockets, HTTP, URIs, LDAP, PCNTL, mail, SNMP
Text, internationalization, and media Strings, PCRE, MBString, Intl, dates, filtering, JSON, GMP, GD, EXIF, image formats
XML, SOAP, and XSL DOM, XPath, SimpleXML, XML parsing, SOAP connections and types, XSL transformations

Breaking changes and deprecations

Build, CLI, and configuration

  • OPcache is built into and loaded by PHP. Remove --enable-opcache and --disable-opcache from build scripts and the zend_extension line loading opcache.so or php_opcache.dll. Control caching with opcache.enable and opcache.enable_cli.
  • PHP 8.5 removes the -z flag from CLI and CGI. Load external Zend extensions with zend_extension in INI configuration.
  • Deriving $_SERVER['argc'] and $_SERVER['argv'] from the query string in non-CLI SAPIs is deprecated. Set register_argc_argv=0 for web SAPIs and read validated request data from $_GET or $_SERVER['QUERY_STRING'].
  • PHP 8.3 resolves open_basedir paths on updates and disallows .. components in runtime updates. Pass a resolved absolute directory to ini_set('open_basedir', $directory) when narrowing the allowed paths.
  • PHP_DEBUG and PHP_ZTS are booleans. Update strict comparisons that expect integer flags.

Read the full file on GitHub · 212 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 212 lines · 7 tokens per session scan A b30511a30545

Subscribe to this mod's changes

php-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (25 stars, last pushed yesterday), licensed MIT. It adds 7 tokens to every session and 3,122 once invoked, about $0.0000 per session on Opus 5.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-12-02.

Related

php-knowledge-patch compared with skills from other repositories

php-knowledge-patch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
php-knowledge-patchNevaberry/nevaberry-pluginsSkill25yesterdayMITA7Claude Code
php-laravelWrongStack/WrongStackSkill447todayMITA85Claude Code
laravel-ops0xDarkMatter/claude-modsSkill868d agoMITA63Claude Code
craftcms-ops0xDarkMatter/claude-modsSkill868d agoMITA115Claude Code
php-laraveliliaal/ai-skillsSkill483d agoMITA65Claude Code
ia-php-laraveliliaal/whetstoneSkill37todayMITA67Claude Code
php-laraveliliaal/whetstoneSkill37todayMITA74Claude Code, Codex