Skip to content
SkillModel-led1,253 tokens in use

php-pro

Writes strictly typed PHP 8.3+ for Laravel and Symfony with readonly DTOs, PSR-12, PHPStan level 9 and PHPUnit or Pest tests.

12,471 stars on the repository MIT LicenseJeffallan/claude-skills · skills/php-pro
/plugin marketplace add jeffallan/claude-skills /plugin install fullstack-dev-skills@fullstack-dev-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing php-pro costs

106tokens idle
1,253tokens in use
12,422tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter15/15
  • Structure22/25
  • Examples15/15
  • Output15/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Excellent
  • Development activity100
  • Maintenance100
  • Community60
  • Maturity36
  • Momentum40

PHP Pro guides Claude through PHP application work in five steps: review the framework and dependencies, design typed models, implement with strict types and dependency injection, secure the input, then run PHPStan at level 9 and the test suite.

Every implementation delivers a typed entity or DTO, a service class and a test. The skill includes patterns for readonly DTOs, constructor-injected services, PHPUnit tests and backed enums.

What You Get

  • A five-step workflow that ends in static analysis and tests
  • Code patterns for a readonly DTO, a typed service with constructor injection, a PHPUnit test and a backed enum
  • Reference files for modern PHP features, Laravel, Symfony, async PHP with Swoole and ReactPHP, and testing quality
  • Rules on strict types, hashed passwords, parameterized queries, thin controllers and configuration in .env
  • A delivery order: domain models, services, controllers, tests and a short design note

Common Use Cases

  • Adding a typed service and DTO to a Laravel application
  • Setting up dependency injection and event handling in Symfony
  • Writing PHPUnit or Pest tests with mocked repositories
  • Moving an older codebase to enums, readonly classes and typed properties
  • Building a REST or GraphQL API with validated input

What Makes It Unique

The skill makes static analysis a gate. PHPStan level 9 and the test suite must both pass clean before delivery, and the baseline structure of DTO, service and test applies to every feature. It covers Laravel, Symfony and async PHP in one skill with separate reference files.

Under The Hood

The skill is instructions and reference markdown that Claude loads by topic; it ships no scripts. Following it, Claude writes PHP source, migrations and test files in your project and runs vendor/bin/phpstan and vendor/bin/phpunit or pest from the command line. It does not call outside services.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers