firehub / phpstan-rules
Custom PHPStan rules and extensions for FireHub projects, providing strict static analysis, architectural validation, and enhanced type safety
Fund package maintenance!
Requires
- php: ^8.0
Requires (Dev)
- firehub/core-foundation: ~0.2
- phpstan/phpstan: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
This package is auto-updated.
Last update: 2026-04-08 08:02:36 UTC
README
PHPStan Rules & Extensions
FireHub PHPStan Rules is a collection of custom PHPStan rules and extensions designed to enforce strict architectural standards, improve static analysis, and ensure type safety across FireHub projects.
This package extends PHPStan with FireHub-specific validation rules and helpers for:
- Domain-driven architecture enforcement
- Strict type safety rules
- Code quality and consistency checks
- Custom project-level static analysis constraints
Installation
Install via Composer (development dependency recommended):
composer require --dev firehub/phpstan-rules
Usage
Enable the extension in your phpstan.neon:
includes: - vendor/firehub/phpstan-rules/rule.neon - vendor/firehub/phpstan-rules/type.neon
Repository Purpose
This package ensures that all FireHub projects follow a consistent and enforceable architectural standard by extending PHPStan with custom rules tailored to the FireHub ecosystem.
Security
For security reporting and guidelines, please refer to our SECURITY.md file.
Community
- Be sure to review the Code of Conduct.
- Read a Contributing file to see how you can contribute to this project.
- Read our Security policy file to see how you can report a vulnerability.
- Review the project Governance model, including roles, decision-making, RFC process, and releases.
Authors and Contributors
Brand & Trademark
Please refer to TRADEMARK.md and BRAND.md for guidelines on FireHub branding.
License
This software is licensed under the MIT License.
For more details, read the full license here.