php

php is a skill for Claude Code, Codex from hmj1026/dhpk. It costs 67 tokens per session (992 once invoked), scanned A, original, MIT.

A guide for writing and reviewing PHP code across PHP 5.6, 7.4, and 8.x. It checks the supported runtime and package constraints before recommending language features, tests, or library changes.

In plain words
What is it for?
Use it for PHP language and runtime work, compatibility reviews, tests, and decisions about whether a feature or library fits a package’s supported PHP versions.
Why use it?
A PHP codebase may need to run on an older version even when a newer version is installed locally. This prevents newer syntax or features from breaking supported deployments.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the dhpk plugin — 39 skills, 1 command, 1 agent, 3 hooks shipped together

Good fit Use it for PHP language and runtime work, compatibility reviews, tests, and decisions about whether a feature or library fits a package’s supported PHP versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmj1026/dhpk/php
View source ↗ hmj1026/dhpk
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 hmj1026/dhpk --skill php
Clone the repo
git clone --depth 1 https://github.com/hmj1026/dhpk

Made for: Claude Code, Codex.

Or install dhpk, the plugin that ships this one along with the rest of its 39 skills, 1 command, 1 agent, 3 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmj1026/dhpk/php/github.svg)](https://agentmods.dev/skills/hmj1026/dhpk/php)
Your own site
<a href="https://agentmods.dev/skills/hmj1026/dhpk/php"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/php/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmj1026/dhpk/php"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/php.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 992 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.00067 $0.00992
Opus 5.5 $0.00027 $0.00397
Sonnet 5.5 $0.00013 $0.00198
Haiku 4.5 $0.00007 $0.00099

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

Security

Grade A, and why

php 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 yesterday.

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.

generated/claude-marketplace/package/skills/flow-drive/references/php/SKILL.md · 78 lines

How it starts

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

PHP

Use $php <task> for language/runtime implementation, review, testing, or a feature decision. Yii framework behavior and framework-security tasks belong to yii1; this folder remains independently usable for PHP runtime work.

Resolve before versioned loads

  1. Identify the target package/subproject and task. An intentional explicit target/version override wins; report it separately from observed constraints.
  2. Inspect target composer.json PHP constraint, lock, platform emulation, CI and deployment configuration at their actual precision. The lowest supported floor governs syntax for a shared file. ^7.4 || ^8.0 retains7.4 compatibility; a broad >=5.6 does not authorize8.x syntax. A lock or config.platform.php value and php --version do not alone prove deployment or package floor.
  3. Ask and wait for missing/conflicting/incompatible evidence or unspecified monorepo scope before version-specific resources or dependent edits. A migration needs an explicit destination. For multiple targets, group references, compatibility decisions and verification evidence per target.

Select only the matching local references

Target/task Local resources
PHP5.6 language/service compatibility legacy
PHP5.6 + PHPUnit5.7 tests legacy testing and relevant test quality
PHP7.4 baseline, API shape, mixed-floor library 7.4
PHP8.x feature/minimum-version decision 8.x, selected section of feature catalog
Static analysis/style setup static checks
Generic test design test quality
Resolved Laravel application laravel-projects, laravel-patterns; version-specific laravel-v10 or laravel-v11-v12 only after exact major evidence
Resolved Symfony or async/event-loop work symfony-patterns or async-patterns only when applicable
PHP8.3+ general idioms modern-php-features only when the floor permits

Read the full file on GitHub · 78 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. yesterday First seen · 78 lines · 67 tokens per session scan A 34a080146345

Subscribe to this mod's changes

php is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 67 tokens to every session and 992 once invoked, about $0.0003 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-10-16.

Related

Other skills, from other repositories

craftcms

Craft CMS 5 plugin and module development — extending Craft with PHP. Covers elements, element queries, services, models, records, controllers, migrations, queue jobs, console commands, field types, native fields, events, behaviors, Twig extensions, widgets, filesystems, permissions, project config, GraphQL, testing…

michtio/craftcms-claude-skills · 70 tokens

craft-php-guidelines

Craft CMS 5 PHP coding standards and conventions. ALWAYS load when writing, editing, reviewing, or discussing any PHP in a Craft plugin or module — even small edits. Also when running ECS, PHPStan, or scaffolding with ddev craft make. Covers: PHPDoc blocks (@author, @since, @throws chains), section headers…

michtio/craftcms-claude-skills · 177 tokens

craft-pest

Testing Craft CMS 5 plugins and modules with Pest — test isolation, database safety, and the markhuot/craft-pest-core harness. ALWAYS load when writing, running, fixing, or reviewing tests for a Craft plugin or module, and whenever a suite touches a real Craft install. Covers why rollback is opt-in, tests/Pest.php +…

michtio/craftcms-claude-skills · 175 tokens

daily-workflow

Daily development workflow for Symfony projects including common tasks, debugging, and productivity tips.

dev-toolings/superpowers-symfony · 19 tokens

laravel-migrations

Use when designing a database schema or managing Laravel 13 migrations — Schema Builder, columns, indexes, foreign keys, or seeders.

fusengine/agents · 32 tokens

solid-php

Use when applying SOLID principles to Laravel 13 / PHP 8.3+ code — file size limits, interface placement, or PHPDoc enforcement.

fusengine/agents · 35 tokens