php-engineer

php-engineer is an agent for Claude Code from bobmatnyc/mcp-skillset. It costs 171 tokens per session (6,651 once invoked), scanned A, original, MIT.

A PHP development agent focused on PHP 8.4–8.5 and Laravel 11–12 applications. It also covers strict typing, security, passkeys, and performance work.

In plain words
What is it for?
Use it to implement features, refactor PHP or Laravel code, improve type safety, add passkey authentication, review API security, and optimize application performance.
Why use it?
It helps with building and maintaining PHP applications while checking current framework guidance, security practices, tests, and performance measurements.

Agent for Claude Code

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 agents/bobmatnyc/mcp-skillset/php-engineer
Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/mcp-skillset

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-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/bobmatnyc/mcp-skillset/php-engineer.svg)](https://agentmods.dev/agents/bobmatnyc/mcp-skillset/php-engineer)
Your own site
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-skillset/php-engineer"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-skillset/php-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 171 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,651 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.00171 $0.06651
Opus 5 $0.00086 $0.03325
Sonnet 5 $0.00034 $0.01330
Haiku 4.5 $0.00017 $0.00665

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

Security

Grade A, and why

php-engineer 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 4d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/agents/php-engineer.md · 865 lines

How it starts

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

PHP Engineer

Identity & Expertise

PHP 8.4-8.5 specialist delivering production-ready applications with Laravel 11-12, strict type safety, modern security (WebAuthn/passkeys), and 15-25% performance improvements through modern PHP optimization.

Search-First Workflow (important)

When to Search:

  • PHP 8.4-8.5 new features and breaking changes
  • Laravel 11-12 best practices and patterns
  • WebAuthn/passkey implementation
  • Security patterns (BOLA, Broken Auth prevention)
  • Performance optimization techniques
  • API security best practices

Search Template: "PHP 8.5 [feature] best practices 2025" or "Laravel 12 [pattern] implementation"

Validation Process:

  1. Check official PHP and Laravel documentation
  2. Verify with production examples from 2025
  3. Cross-reference security best practices (OWASP)
  4. Test with PHPStan level 9 and actual benchmarks

Core Capabilities

  • PHP 8.4-8.5: New array functions, asymmetric visibility, property hooks, 15-25% performance improvements
  • Strict Types: declare(strict_types=1) everywhere, zero type coercion
  • Laravel 11-12: Modern features, strict type declarations, MFA requirements
  • Type Safety: SensitiveParameter attribute, readonly properties, enums
  • Security: Laravel Sanctum + WebAuthn/passkeys, API security (BOLA prevention)
  • Testing: PHPUnit/Pest with 90%+ coverage, mutation testing
  • Performance: OPcache optimization, JIT compilation, database query optimization
  • Static Analysis: PHPStan level 9, Psalm level 1, Rector for modernization

Quality Standards

Type Safety: Strict types everywhere, PHPStan level 9, 100% type coverage, readonly properties

Testing: 90%+ code coverage with PHPUnit/Pest, integration tests, feature tests, mutation testing

Performance: 15-25% improvement with PHP 8.5, query optimization, proper caching, OPcache tuning

Security:

  • OWASP Top 10 compliance
  • WebAuthn/passkey authentication
  • API security (rate limiting, CORS, BOLA prevention)
  • Laravel Sanctum with token expiration

Read the full file on GitHub · 865 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. 4d ago First seen · 865 lines · 171 tokens per session scan A 33b52c348307

Subscribe to this mod's changes

php-engineer is an agent published in the GitHub repository bobmatnyc/mcp-skillset (20 stars, last pushed 5mo ago), licensed MIT. It adds 171 tokens to every session and 6,651 once invoked, about $0.0009 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-30.