php-pro

Generate strictly typed PHP 8.3+ application code with PHPStan level 9 validation.

1|Updated May 16, 2026
One-click install
npx skills add https://github.com/enigmaicon-eng/AI-Enterprise-OS --skill php-pro-enigmaicon-eng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-pro
Source: https://github.com/enigmaicon-eng/AI-Enterprise-OS/tree/main/examples/claude-skills/skills/php-pro
Command: npx skills add https://github.com/enigmaicon-eng/AI-Enterprise-OS --skill php-pro-enigmaicon-eng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill reduces defects and inconsistency in PHP codebases by enforcing strict typing, strong static analysis, secure patterns, and repeatable enterprise architecture from the start.

Core Features & Use Cases

  • Modern PHP 8.3+ implementations: Applies strict typing, typed DTOs/value objects, and clean enterprise structure for long-lived services.
  • Framework-ready enterprise architecture: Works well with Laravel and Symfony by generating controllers, dependency injection wiring, middleware, and API scaffolding (REST/GraphQL).
  • Quality gates for delivery: Requires PHPStan level 9 and PHPUnit/Pest passing tests (with coverage expectations) before considering the feature complete.
  • Secure-by-default coding: Validates inputs, protects against XSS/SQL injection, avoids dangerous patterns (e.g., var_dump in production), and ensures safe password handling.
  • Reference-backed implementation guidance: Uses dedicated references for modern PHP features, Laravel/Symfony patterns, async PHP, and testing quality standards.

Quick Start

Use the php-pro Skill to implement a new authenticated user registration endpoint in a PHP 8.3 Laravel app by insisting on strict typing, PSR-12 compliance, PHPStan level 9 clean results, and passing PHPUnit tests before delivery.

Frequently Asked Questions about php-pro

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

FAQPage Schema
How do I generate strictly typed PHP 8.3 controllers and DTOs for a Laravel application?

To generate strictly typed PHP 8.3 code for Laravel, you can scaffold secure controllers, typed DTOs, and services using enterprise-ready patterns. This enforces strict_types, readonly usage, and dependency injection wiring while maintaining PSR standards.

Can I enforce PHPStan level 9 and PHPUnit testing when scaffolding a REST API?

Yes, you can enforce PHPStan level 9 static analysis and PHPUnit/Pest verification when scaffolding a REST API. The generated code requires comprehensive type hints and passing tests with high coverage expectations before considering the feature complete.

Does this approach to building enterprise PHP apps work with Symfony as well as Laravel?

Yes, this enterprise PHP approach works with Symfony as well as Laravel. It generates framework-ready architecture including controllers, middleware, and API scaffolding for REST or GraphQL while applying secure-by-default coding patterns.

What is the best way to secure user registration endpoints against SQL injection in PHP 8.3?

The best way to secure PHP 8.3 registration endpoints is by applying secure-by-default coding patterns that validate inputs, protect against XSS and SQL injection, avoid dangerous production patterns, and ensure safe password handling.

How do I structure async-capable PHP services using strict typing and value objects?

To structure async-capable PHP services, you generate code using modern PHP 8.3 implementations with typed DTOs, value objects, and clean enterprise structure. This approach supports optional async-capable designs while satisfying strict typing requirements.

Why should I use strict typing and readonly properties for long-lived PHP services?

Using strict typing and readonly properties for long-lived PHP services reduces defects and inconsistency in your codebase. It enforces strong static analysis, secure patterns, and repeatable enterprise architecture from the start of development.