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.
npx skills add hmj1026/dhpk --skill phpgit clone --depth 1 https://github.com/hmj1026/dhpkWrote 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.
[](https://agentmods.dev/skills/hmj1026/dhpk/php)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- Identify the target package/subproject and task. An intentional explicit target/version override wins; report it separately from observed constraints.
- 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.0retains7.4 compatibility; a broad>=5.6does not authorize8.x syntax. A lock or config.platform.php value andphp --versiondo not alone prove deployment or package floor. - 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 |
What ships with it
21 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.
- agents/openai.yaml 232 B
- distribution.yaml 2.5 KB
- evals/evals.json 3.3 KB
- references/7-4.md 8.4 KB
- references/8-x.md 2.6 KB
- references/agent-extracts/architect-code-examples.md 4.7 KB
- references/agent-extracts/security-owasp-examples.md 4.4 KB
- references/agent-extracts/tdd-code-templates.md 4.8 KB
- references/async-patterns.md 9.1 KB
- references/feature-catalog.md 5.6 KB
- references/laravel-patterns.md 8.9 KB
- references/laravel-projects.md 5.2 KB
- references/laravel-v10.md 1.5 KB
- references/laravel-v11-v12.md 1.8 KB
- references/laravel-version-checks.md 3.5 KB
- references/modern-php-features.md 6.5 KB
- references/php56-legacy.md 3.8 KB
- references/phpunit57-php56-legacy.md 3.6 KB
- references/static-checks.md 3.5 KB
- references/symfony-patterns.md 11 KB
- references/testing-quality.md 9.6 KB
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.
- yesterday First seen · 78 lines · 67 tokens per session scan A 34a080146345
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.
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…
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…
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 +…
daily-workflow
Daily development workflow for Symfony projects including common tasks, debugging, and productivity tips.
laravel-migrations
Use when designing a database schema or managing Laravel 13 migrations — Schema Builder, columns, indexes, foreign keys, or seeders.
solid-php
Use when applying SOLID principles to Laravel 13 / PHP 8.3+ code — file size limits, interface placement, or PHPDoc enforcement.