php-laravel

Installation
SKILL.md

PHP & Laravel Development

Code Style

  • declare(strict_types=1) in every file
  • Happy path last -- handle errors/guards first, success at the end. Use early returns; avoid else.
  • Comments only explain why, never what. Never comment tests. If code needs a "what" comment, rename or restructure instead.
  • No single-letter variables -- $exception not $e, $request not $r
  • ?string not string|null. Always specify void. Import classnames everywhere, never inline FQN.
  • Validation uses array notation ['required', 'email'] for easier custom rule classes
  • Static analysis: run PHPStan at level 8+ (phpstan analyse --level=8). Aim for level 9 on new projects. Use @phpstan-type and @phpstan-param for generic collection types.

Modern PHP (8.4)

Installs
2
GitHub Stars
10
First Seen
Mar 12, 2026
php-laravel — iliaal/compound-engineering-plugin