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.
npx agentmods add skills/fortiumpartners/ensemble/developing-with-phpnpx skills add FortiumPartners/ensemble --skill developing-with-phpgit clone --depth 1 https://github.com/FortiumPartners/ensembleWrote 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.
[](https://agentmods.dev/skills/fortiumpartners/ensemble/developing-with-php)<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/developing-with-php"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/developing-with-php.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00037 | $0.03069 |
| Opus 5 | $0.00018 | $0.01535 |
| Sonnet 5 | $0.00007 | $0.00614 |
| Haiku 4.5 | $0.00004 | $0.00307 |
Grade A, and why
developing-with-php scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
$user = $stmt->fetch(PDO::FETCH_ASSOC); How it starts
The opening of the file, as written. The whole thing — 514 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PHP Skill - Quick Reference
Core PHP language patterns for modern development. For Laravel-specific patterns, see the Laravel skill.
Progressive Disclosure: This is the quick reference. See REFERENCE.md for comprehensive patterns, advanced examples, and deep-dives.
Table of Contents
- PHP 8.x Type System
- Constructor Property Promotion
- Enums
- Match Expression & Named Arguments
- Attributes
- Null Safety
- OOP Essentials
- Handler/Service Pattern
- Map/DTO Pattern
- PDO Database Access
- Composer & Autoloading
- Error Handling
- Testing with PHPUnit
- Array Operations Quick Reference
- Security Essentials
- Quick Reference Tables
- Related Resources
PHP 8.x Type System
<?php
// Union types (8.0+)
function process(string|int $value): string|false { }
// Intersection types (8.1+)
function handle(Countable&Iterator $collection): void { }
// Nullable types
function find(int $id): ?User { }
// Never return type (8.1+)
function fail(): never {
throw new Exception('Fatal error');
}
// True, false, null as standalone types (8.2+)
function isValid(): true { return true; }
Constructor Property Promotion
<?php
// Promoted properties (8.0+) - replaces boilerplate
class User {
public function __construct(
private string $name,
private string $email,
private bool $active = true,
) {}
}
// Readonly class (8.2+) - all properties are readonly
readonly class ValueObject {
public function __construct(
public string $value,
public DateTimeImmutable $createdAt,
) {}
}
What ships with it
13 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.
- examples/handler_architecture.example.php 16 KB
- README.md 3.2 KB
- REFERENCE.md 45 KB
- templates/class.template.php 4.7 KB
- templates/composer.template.json 1.4 KB
- templates/enum.template.php 4.1 KB
- templates/handler.template.php 6.7 KB
- templates/interface.template.php 3.6 KB
- templates/map_data.template.php 3.7 KB
- templates/pdo_repository.template.php 7.8 KB
- templates/phpunit.template.xml 1.7 KB
- templates/trait.template.php 4.4 KB
- VALIDATION.md 8.5 KB
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.
- yesterday First seen · 514 lines · 37 tokens per session scan A f7a524172bfe
developing-with-php is a skill published in the GitHub repository FortiumPartners/ensemble (11 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 3,069 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
laravel-actions
Build, refactor, and troubleshoot Laravel Actions using lorisleiva/laravel-actions. Use when implementing reusable action classes (object/controller/job/listener/command), converting service classes/controllers/jobs into actions, orchestrating workflows via faked actions, or debugging action entrypoints and wiring.
laravel-best-practices
Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization…
meta-dev
AGENT-11 framework development. Use when modifying agents, commands, missions, skills, or library files inside the agent-11 repository itself. Distinguishes the LIBRARY surface (project/agents/specialists/, project/commands/, library/) — which is deployed to users — from the WORKING SQUAD (.claude/agents/…
saas-analytics
Implement product analytics for understanding user behavior, tracking key metrics, and making data-driven decisions. Covers event tracking, user identification, cohort analysis, and integration with analytics platforms like PostHog, Mixpanel, or custom solutions.
saas-auth
Implement production-ready authentication for SaaS applications including email/password, OAuth social login, session management, and security best practices. This skill covers the complete auth lifecycle from signup through password recovery.
saas-billing
Implement subscription lifecycle management, plan enforcement, usage tracking, and billing operations. Covers trial periods, plan changes, quota enforcement, and subscription status synchronization with payment providers.