php

php is a skill for Claude Code from notque/vexjoy-agent. It costs 16 tokens per session (938 once invoked), scanned A, original, MIT.

A PHP development guide covering modern PHP features, PSR coding standards, framework practices, quality tools, and PHPUnit testing. PHP is a programming language widely used to build websites and web services.

In plain words
What is it for?
Use it when writing, modernising, checking, or testing PHP applications, including Laravel or Symfony projects.
Why use it?
It provides consistent rules for readable code, static checks, framework code, and automated tests.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: agent in frontmatter.

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/notque/vexjoy-agent/php
Any agent
npx skills add notque/vexjoy-agent --skill php
Clone the repo
git clone --depth 1 https://github.com/notque/vexjoy-agent

Made for: Claude Code.

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/notque/vexjoy-agent/php.svg)](https://agentmods.dev/skills/notque/vexjoy-agent/php)
Your own site
<a href="https://agentmods.dev/skills/notque/vexjoy-agent/php"><img src="https://agentmods.dev/badge/skills/notque/vexjoy-agent/php.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 938 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.1 $0.00016 $0.00938
Opus 5 $0.00008 $0.00469
Sonnet 5 $0.00003 $0.00188
Haiku 4.5 $0.00002 $0.00094

Measured 2d ago against content hash 410fb4426df9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 2d 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/engineering/php/SKILL.md · 112 lines

How it starts

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

PHP Skill

PHP code quality and testing: strict types, PSR-12 compliance, modern language features, framework idioms, static analysis tooling, and PHPUnit testing patterns.

Reference Loading Table

Signal Reference Size
union types, intersection types, DNF, enums, readonly, named arguments, match expression, null-safe operator, PHP 8.0, PHP 8.1, PHP 8.2 references/modern-php-features.md ~160 lines
Laravel, Eloquent, Collections, Service Container, Symfony, DI attributes, Event Dispatcher, framework references/framework-idioms.md ~70 lines
PHP-CS-Fixer, PHPStan, Psalm, Rector, static analysis, CI, linting, code style, taint analysis references/quality-tools.md ~60 lines
PHPUnit tests, data providers, mocks, stubs, database testing, HTTP testing, coverage references/testing-patterns.md ~120 lines
quality review process, phases, PSR-12 enforcement references/php-quality.md ~60 lines
test writing process, test doubles, Prophecy, database fixtures references/php-testing.md ~50 lines

Loading rule. Read the references whose signals match the task before responding.


Core Rules (Always Apply)

Strict Types Declaration

Every PHP file must begin with declare(strict_types=1). This enforces scalar type coercion rules, catching type errors at call time instead of silently converting values. Omitting it is a code quality defect.

PSR-12 Coding Standard

PSR-12 extends PSR-1 and PSR-2 as the accepted PHP coding style:

  • 4-space indentation, no trailing whitespace
  • One class per file
  • use statements after namespace with a blank line before and after
  • Visibility required on all properties, methods, and constants
  • Opening braces on same line for control structures
  • Opening braces on next line for classes and methods

Phase 1: ASSESS

Determine what kind of PHP work is needed:

Request type Load references Action
Code review quality refs + quality-tools Full quality pass
Type system question modern-php-features Feature-specific guidance
Framework patterns framework-idioms Idiomatic pattern review
Tooling setup quality-tools Config and CI guidance
Write tests testing-patterns + php-testing PHPUnit test authoring
Test review testing-patterns Test quality review

Read the full file on GitHub · 112 lines

Files

What ships with it

6 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. 2d ago First seen · 112 lines · 16 tokens per session scan A 410fb4426df9

Subscribe to this mod's changes

php is a skill published in the GitHub repository notque/vexjoy-agent (420 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 938 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

php-rules

PHP coding rules: style, patterns, security, testing. Triggers: .php, composer.json, Laravel, Symfony, PHPUnit, PSR-12, Composer.

softspark/ai-toolkit · 38 tokens

laravel

Laravel mastery skill. Eloquent ORM, service container, queues, events, Sanctum/Passport auth, Pest testing. Triggers on: /godmode:laravel, "laravel app", "eloquent", "artisan", "blade".

arbazkhan971/godmode · 52 tokens

architecture-patterns

Use this skill when choosing a system-level architecture (monolith, modular monolith, microservices, event-driven, serverless, clean/hexagonal, or DDD) for a new or growing PHP application, or when weighing a premature move to a more distributed style. Provides a decision guide and the common pitfalls that cause…

garrettw/php-arch-skills · 77 tokens

event-sourcing

Use this skill when evaluating or implementing Event Sourcing in a PHP application. Triggers on questions about event stores, aggregates, projections, snapshots, event replay, temporal queries, CQRS with event sourcing, or PHP event-sourcing libraries (Ecotone, Prooph, EventSauce, Patchlevel). Distinguishes Event…

garrettw/php-arch-skills · 86 tokens

application-layer

Use this skill when writing controllers, structuring use cases, or implementing Service Layer / Application Layer and Command/Query/Handler (CQRS) patterns in PHP applications. Triggers on questions about thin controllers, handler responsibilities, service definition, or DTO usage.

garrettw/php-arch-skills · 55 tokens

dependency-injection

Use this skill when wiring dependencies, configuring a DI container, designing plugin/extension points, or migrating away from legacy service locators in PHP. Triggers on questions about constructor injection, interface registration, swapping implementations, or testing without booting the container.

garrettw/php-arch-skills · 55 tokens