marc-mabe/php-enum-phpstan
PHPStan extension for marc-mabe/php-enum. Teaches PHPStan about enum accessor methods and allowed values so static analysis understands your enumerations and catches invalid usage. Install with Composer and include the provided extension.neon.
Architecture fit: The package integrates seamlessly with Laravel's development workflow by enhancing PHPStan's static analysis capabilities for enum types. As a dev-only dependency, it adds no runtime overhead but significantly improves type safety during development. It complements Laravel's existing tooling (e.g., PHPStan for static analysis) without altering core application structure.
Integration feasibility: Requires minimal configuration (
How can I help you explore Laravel packages today?