php-development

Author and review PHP production code and Pest tests with strict typing and PSR-12 styling.

1|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/loadinglucian/dotagents --skill php-development-loadinglucian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-development
Source: https://github.com/loadinglucian/dotagents/tree/main/skills/php-development
Command: npx skills add https://github.com/loadinglucian/dotagents --skill php-development-loadinglucian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Author and review PHP production code and Pest tests with strict_types, PSR-12 structure, braces on all control structures, Yoda conditions for literal comparisons, PHPStan-friendly annotations, Symfony-first utilities, and behavior-first Pest conventions.

Core Features & Use Cases

  • Enforce strict typing in every PHP file and tests
  • Maintain PSR-12 structure, braces on all control structures, and Yoda conditions
  • Align production code and Pest coverage through unified tooling and conventions
  • Use Symfony utilities over native PHP for better testability

Quick Start

Run PHP production code changes and Pest tests with strict types, PSR-12 structure, and braces on all control structures to ensure unified behavior.

Frequently Asked Questions about php-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce strict_types and PSR-12 in PHP and Pest tests?

Enforce strict types and PSR-12 in PHP by applying strict typing declarations, braces on all control structures, and Yoda conditions across production code and Pest tests. This ensures unified behavior and PHPStan-friendly annotations throughout your source files.

What is the best way to align PHP production code with Pest test coverage during refactors?

Align PHP production code with Pest coverage by using unified tooling and conventions that enforce strict typing and PSR-12 structure. This keeps implementation and tests synchronized during refactors, ensuring behavior-first Pest conventions are maintained.

Can I use Symfony utilities instead of native PHP functions for better testability?

Use Symfony utilities over native PHP functions to achieve better testability in your PHP applications. This approach integrates with the enforced strict typing and PSR-12 conventions to maintain production-grade standards across your codebase.

Does PHPStan strictness work with Pest test files and strict type declarations?

PHPStan strictness works with Pest test files by enforcing PHPStan-friendly annotations alongside strict type declarations. This combination ensures both production code and tests adhere to strict typing and standardized styling conventions.

Why does my PHP code require Yoda conditions and braces on all control structures?

PHP code requires Yoda conditions and braces on all control structures to comply with PSR-12 conventions and maintain strict code quality. These standards prevent errors and ensure consistent, readable code across production files and Pest tests.