php-pro

Generate strict-typed PHP modules with PHPStan level 9 for Laravel and Symfony.

1|1|Updated Dec 15, 2024
One-click install
npx skills add https://github.com/Alejocabeza/dotfiles --skill php-pro-alejocabeza
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: php-pro
Source: https://github.com/Alejocabeza/dotfiles/tree/main/opencode/skills/php-pro
Command: npx skills add https://github.com/Alejocabeza/dotfiles --skill php-pro-alejocabeza

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps teams enforce strong typing, modern PHP patterns, and high-quality architecture across Laravel and Symfony projects, reducing runtime bugs and maintenance costs.

Core Features & Use Cases

  • Enforces strict types, PSR-12 coding standards, and PHPStan level 9 compliance across codebases.
  • Provides templates and guidance for domain models, services, repositories, and tests tailored to Laravel/Symfony ecosystems.
  • Supports async patterns with Swoole and modern PHP features such as enums, readonly properties, and type-safe DTOs.

Quick Start

Generate a starter PHP module that enforces strict types, PSR-12, and PHPStan level 9 for Laravel or Symfony projects.

Frequently Asked Questions about php-pro

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

FAQPage Schema
How do I enforce PHPStan level 9 and strict typing in a Laravel or Symfony project?▼

You can enforce PHPStan level 9 and strict typing by applying declare(strict_types=1) and type hints everywhere. This Skill automates that setup for Laravel and Symfony projects, providing DI-based design templates to ensure compliance.

What is the best way to scaffold a PSR-compliant PHP 8.3 domain model with repositories?▼

The best way to scaffold a PSR-12 compliant domain model is using automated templates. This Skill generates type-safe DTOs, domain models, services, and repositories tailored for modern PHP 8.3 ecosystems.

Does this PHP strict typing approach work with Swoole asynchronous patterns?▼

Yes, this strict typing approach works with Swoole asynchronous patterns. The Skill supports modern PHP features including Swoole, ensuring type-safe architectures and high-quality design across your application.

Can I use these PHP templates to reduce runtime bugs in enterprise applications?▼

Yes, you can use these templates to reduce runtime bugs in enterprise applications. By enforcing strict types, PSR-12 standards, and PHPStan level 9 checks, the Skill minimizes runtime errors and lowers maintenance costs.

How do I set up dependency injection and readonly properties in modern PHP projects?▼

To set up dependency injection and readonly properties, apply DI-based design alongside modern PHP features. This Skill provides architectural guidance and templates enforcing these patterns for robust application development.