php-dev-core

php-dev-core is a skill for Claude Code from ddtcorex/maestro-skills. It costs 74 tokens per session (2,692 once invoked), scanned A, original, MIT.

A foundation guide for writing PHP that is not tied to one framework. It covers code style, Composer packages, security, types, static analysis, and testing.

In plain words
What is it for?
Use it when building reusable PHP packages or application code for Magento, Laravel, Symfony, or WordPress, including PSR-4/PSR-12, PHPStan, PHPCS, and secure data handling.
Why use it?
It gives PHP projects consistent rules for readable, safer code and helps catch errors before runtime.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex; mentions OpenCode.

Part of the maestro-skills plugin — 32 skills shipped together

Good fit Use it when building reusable PHP packages or application code for Magento, Laravel, Symfony, or WordPress, including PSR-4/PSR-12, PHPStan, PHPCS, and secure data handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ddtcorex/maestro-skills/php-dev-core
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.

Any agent
npx skills add ddtcorex/maestro-skills --skill php-dev-core
Clone the repo
git clone --depth 1 https://github.com/ddtcorex/maestro-skills

Made for: Claude Code.

Or install maestro-skills, the plugin that ships this one along with the rest of its 32 skills.

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-dev-core

README.md
[![agentmods](https://agentmods.dev/badge/skills/ddtcorex/maestro-skills/php-dev-core/github.svg)](https://agentmods.dev/skills/ddtcorex/maestro-skills/php-dev-core)
Your own site
<a href="https://agentmods.dev/skills/ddtcorex/maestro-skills/php-dev-core"><img src="https://agentmods.dev/badge/skills/ddtcorex/maestro-skills/php-dev-core/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-dev-core

Your own site · 80×15
<a href="https://agentmods.dev/skills/ddtcorex/maestro-skills/php-dev-core"><img src="https://agentmods.dev/badge/skills/ddtcorex/maestro-skills/php-dev-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,692 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 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.00074 $0.02692
Opus 5.5 $0.00030 $0.01077
Sonnet 5.5 $0.00015 $0.00538
Haiku 4.5 $0.00007 $0.00269

Measured 1mo ago against content hash af3b61163896, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

php-dev-core 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.

skills/php-dev-core/SKILL.md · 272 lines

How it starts

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

PHP Developer Core

Foundation skill for framework-agnostic PHP. Covers coding standards, Composer, static analysis, security, and testing across Magento 2, Laravel, Symfony, and WordPress. Pair with govard-toolbox for container and environment commands (govard up, govard sh, govard audit). For framework-specific tooling see govard-laravel, govard-symfony, govard-wordpress, or magento2-dev-core for Magento DI and service contracts.

REQUIRED BACKGROUND: Load govard-toolbox first for environment lifecycle and audit matrix. This skill adds language-level patterns. Framework skills (govard-laravel, govard-symfony, govard-wordpress) depend on both govard-toolbox and php-dev-core; magento2-dev-core cross-references this skill for generic PHP and owns Magento-specific DI and plugins.

1. Coding Standards & Types

Every new PHP file MUST start with strict types:

<?php
declare(strict_types=1);

PSR-12 is the default. When framework conventions diverge, PSR-12 wins for generic code.

Rule PSR-12 Notes
Opening tag <?php then declare(strict_types=1); Blank line after declare
Braces Next line for classes/methods Same line for controls
Visibility Always explicit: public, protected, private Include readonly where needed
Naming Classes PascalCase, methods camelCase Constants UPPER_SNAKE
Use grouping Grouped use for same namespace One use per line for clarity
Indentation 4 spaces, no tabs, LF Line limit 120

PSR-4 autoloading is required. Map namespaces in composer.json:

{
  "autoload": {
    "psr-4": { "Vendor\\Package\\": "src/" }
  }
}

PHP 8.1-8.4 idioms to prefer:

  • readonly properties and readonly class for DTOs (8.1+), constructor promotion.
  • enum for closed sets instead of class constants (8.1+).
  • match over switch for exhaustive mapping; never for functions that always throw.
  • Intersection types (X&Y) and mixed where genuinely needed; avoid untyped parameters.
  • final classes by default; open only with documented reason.

Read the full file on GitHub · 272 lines

Files

What ships with it

3 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. 1mo ago First seen · 272 lines · 74 tokens per session scan A af3b61163896

Subscribe to this mod's changes

php-dev-core is a skill published in the GitHub repository ddtcorex/maestro-skills (5 stars, last pushed yesterday), licensed MIT. It adds 74 tokens to every session and 2,692 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-08-31.

Related

Other skills, from other repositories

magento-php-specialist

Advanced PHP development for Magento 2 following PSR-12 and Magento coding standards. Use when writing PHP code, implementing business logic, or ensuring code quality. Masters modern PHP features, object-oriented programming, design patterns, and Magento-specific PHP practices.

maxnorm/magento2-agent-skills · 57 tokens

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

laravel-security

Laravel security best practices for authn/authz, validation, CSRF, mass assignment, file uploads, secrets, rate limiting, and secure deployment.

hashgraph-online/awesome-codex-plugins · 34 tokens

integration-fixture

Add a .test integration fixture for one behavior.

phel-lang/phel-lang · 10 tokens

Behat BDD Testing

PHP BDD testing with Behat framework using Gherkin feature files, Mink browser extension, context classes, and Symfony integration for behavior-driven acceptance testing.

PramodDutta/qaskills · 37 tokens

create-module

Scaffold a new Marko module — a self-contained Composer package with composer.json, namespaced src/, and Pest tests. Use this skill whenever the user asks to create, add, or scaffold a new Marko module or package. Concrete triggers: 'create a module named payment', 'scaffold an acme/blog package', 'add a new module…

marko-php/marko · 120 tokens