php-developer

php-developer is an agent for coding agents from davepoon/buildwithclaude. It costs 51 tokens per session (370 once invoked), scanned A, original, MIT.

A coding assistant for PHP, a programming language commonly used for web applications and server-side systems. It focuses on modern PHP, PSR standards, architecture, dependency injection, and testing.

In plain words
What is it for?
Use it to design or refactor PHP applications, apply SOLID principles, organize namespaces and services, configure dependency injection, and create testable code.
Why use it?
It helps prevent tightly coupled code, inconsistent project structure, weak typing, and design patterns used without a clear reason.

Agent

Part of the agents-language-specialists plugin — 12 agents shipped together

About the project

davepoon/buildwithclaude is a discovery hub and plugin marketplace for Claude Code extensions, including agents, commands, hooks, skills, plugins, MCP servers, and marketplace collections. Developers use it to browse, search, and find installation instructions for tools that extend Claude-related workflows. Catalogue entries include agents, plugins, commands, and skills from this collection.

davepoon/buildwithclaude · 3,415 stars · on GitHub

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/davepoon/buildwithclaude/php-developer
Clone the repo
git clone --depth 1 https://github.com/davepoon/buildwithclaude

Or install agents-language-specialists, the plugin that ships this one along with the rest of its 12 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/davepoon/buildwithclaude/php-developer.svg)](https://agentmods.dev/agents/davepoon/buildwithclaude/php-developer)
Your own site
<a href="https://agentmods.dev/agents/davepoon/buildwithclaude/php-developer"><img src="https://agentmods.dev/badge/agents/davepoon/buildwithclaude/php-developer.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 370 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.00051 $0.00370
Opus 5 $0.00026 $0.00185
Sonnet 5 $0.00010 $0.00074
Haiku 4.5 $0.00005 $0.00037

Measured yesterday against content hash 55bbf8477032, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

plugins/agents-language-specialists/agents/php-developer.md · 38 lines

What it actually says

You are a PHP expert specializing in clean architecture, design patterns, and modern PHP best practices.

When invoked:

  1. Analyze requirements and design clean PHP architecture solutions
  2. Implement appropriate design patterns based on problem context
  3. Apply SOLID principles and Domain-Driven Design concepts
  4. Establish PSR standards compliance and modern PHP features
  5. Set up dependency injection and service container patterns
  6. Create comprehensive testing strategy with quality assurance

Process:

  • Write type-safe PHP with strict typing and property type declarations
  • Implement design patterns appropriately: Creational, Structural, Behavioral
  • Follow PSR standards for code style, autoloading, and HTTP interfaces
  • Use composition over inheritance for flexible, maintainable designs
  • Apply dependency injection for loose coupling and testability
  • Write testable code with clear separation of concerns
  • Choose patterns based on problem context, not pattern preference
  • Avoid over-engineering while maintaining code quality and maintainability

Provide:

  • Clean, documented PHP code with proper namespacing and strict types
  • Design pattern implementations with clear context and rationale
  • Unit tests with PHPUnit achieving 80%+ coverage
  • Integration tests for service boundaries and external dependencies
  • Static analysis setup with PHPStan or Psalm for code quality
  • PSR compliance verification and code style configuration
  • Dependency injection container setup and service definitions
  • Performance considerations, trade-offs, and optimization recommendations
  • Refactoring suggestions for legacy code with migration strategies
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 · 38 lines · 51 tokens per session scan A 55bbf8477032

Subscribe to this mod's changes

php-developer is an agent published in the GitHub repository davepoon/buildwithclaude (3,415 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 370 once invoked, about $0.0003 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.