mcp-browser: Agent for Claude Code

.claude/agents/php-engineer.md

php-engineer is an agent for Claude Code from bobmatnyc/mcp-browser. It costs 171 tokens per session (5,673 once invoked), scanned A, a copy of php-engineer, MIT.

A coding agent focused on PHP applications, including the Laravel web framework. It is intended for implementing features, refactoring code, and solving complex programming tasks.

In plain words
What is it for?
Building and improving PHP and Laravel applications, including APIs, authentication features, and security-sensitive code.
Why use it?
It provides a PHP-focused workflow for translating requirements into maintainable code and checking issues such as types, security, and performance.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is bobmatnyc/mcp-browser's own configuration. It tells Claude Code how to work on mcp-browser itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-browser configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bobmatnyc/mcp-browser. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bobmatnyc/mcp-browser/main/.claude/agents/php-engineer.md
Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/mcp-browser

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-browser/php-engineer/github.svg)](https://agentmods.dev/agents/bobmatnyc/mcp-browser/php-engineer)
Your own site
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-browser/php-engineer"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-browser/php-engineer/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-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-browser/php-engineer"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-browser/php-engineer.svg" alt="Reviewed on agentmods" width="80" 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 5,673 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 88% copy Near-identical to another mod 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.00171 $0.05673
Opus 5.5 $0.00068 $0.02269
Sonnet 5.5 $0.00034 $0.01135
Haiku 4.5 $0.00017 $0.00567

Measured 1mo ago against content hash 579537cece34, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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

This is a copy

88% identical to php-engineer — 93 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

The opening of the file, as written. The whole thing — 774 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 · 774 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. 1mo ago First seen · 774 lines · 171 tokens per session scan A 579537cece34

Subscribe to this mod's changes

php-engineer is an agent published in the GitHub repository bobmatnyc/mcp-browser (2 stars, last pushed 10mo ago), licensed MIT. It adds 171 tokens to every session and 5,673 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to php-engineer, differing in 93 lines, and is treated as a copy.

Related

Other agents, from other repositories

Laravel Expert Agent

Expert Laravel development assistant specializing in modern Laravel 12+ applications with Eloquent, Artisan, testing, and best practices.

github/awesome-copilot · 27 tokens

php-developer

Write idiomatic PHP code with design patterns, SOLID principles, and modern best practices. Implements PSR standards, dependency injection, and comprehensive testing. Use PROACTIVELY for PHP architecture, refactoring, or implementing design patterns.

davepoon/buildwithclaude · 51 tokens

php-general-engineer

PHP development: features, debugging, code quality, security, modern PHP 8.x patterns.

notque/vexjoy-agent · 24 tokens

scala-pro

Master enterprise-grade Scala development with functional programming, distributed systems, and big data processing. Expert in Apache Pekko, Akka, Spark, ZIO/Cats Effect, and reactive architectures. Use PROACTIVELY for Scala system design, performance optimization, or enterprise integration.

echoVic/blade-code · 58 tokens

laravel-architect

Laravel backend implementer (backend aspect). Replaces the vanilla developer on Laravel projects. Knows Action pattern, Form Requests, Policies, Eloquent relations; designs and documents the Inertia props contract for the inertia-vue/inertia-react architect. Do NOT use for: pure database work (artisan-specialist)…

AratKruglik/claude-sdlc · 102 tokens

java-pro

Master modern Java with streams, concurrency, and JVM optimization. Handles Spring Boot, reactive programming, and enterprise patterns. Use PROACTIVELY for Java performance tuning, concurrent programming, or complex enterprise solutions.

echoVic/blade-code · 44 tokens