https://github.com/the-firehub-project/phpstan-rules
Custom PHPStan rules and extensions for FireHub projects, providing strict static analysis, architectural validation, and enhanced type safety.
https://github.com/the-firehub-project/phpstan-rules
firehub php phpstan phpstan-rules
Last synced: about 1 month ago
JSON representation
Custom PHPStan rules and extensions for FireHub projects, providing strict static analysis, architectural validation, and enhanced type safety.
- Host: GitHub
- URL: https://github.com/the-firehub-project/phpstan-rules
- Owner: The-FireHub-Project
- License: mit
- Created: 2026-04-02T12:15:45.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2026-04-02T13:58:25.000Z (about 2 months ago)
- Last Synced: 2026-04-06T21:03:26.568Z (about 1 month ago)
- Topics: firehub, php, phpstan, phpstan-rules
- Language: PHP
- Homepage: https://the-firehub-project.github.io
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Citation: CITATION.cff
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
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):
```bash
composer require --dev firehub/phpstan-rules
```
##
Usage
Enable the extension in your phpstan.neon:
```txt
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
[](https://img.shields.io/ossf-scorecard/github.com/The-FireHub-Project/PHPStan-Rules?style=flat&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjOTU5ZGE1Ij48cGF0aCBkPSJNNDgwLTgwcS0xMzktMzUtMjI5LjUtMTU5LjVUMTYwLTUxNnYtMjQ0bDMyMC0xMjAgMzIwIDEyMHYyNDRxMCAxNTItOTAuNSAyNzYuNVQ0ODAtODBabTAtODRxOTctMzAgMTYyLTExOC41VDcxOC00ODBINDgwdi0zMTVsLTI0MCA5MHYyMDdxMCA3IDIgMThoMjM4djMxNloiLz48L3N2Zz4=&logoColor=959da5&label=OpenSSF%20score&labelColor=31373e)
For security reporting and guidelines, please refer to our [SECURITY.md](https://github.com/The-FireHub-Project/.github/blob/master/.github/SECURITY.md) file.
##
Community
- Be sure to review the [Code of Conduct](https://github.com/The-FireHub-Project/.github/blob/master/.github/CODE_OF_CONDUCT.md).
- Read a [Contributing](https://github.com/The-FireHub-Project/.github/blob/master/.github/CONTRIBUTING.md) file to see how you can contribute to this project.
- Read our [Security policy](https://github.com/The-FireHub-Project/.github/blob/master/.github/SECURITY.md) file to see how you can report a vulnerability.
- Review the project [Governance model](https://github.com/The-FireHub-Project/.github/blob/master/.github/GOVERNANCE.md), including roles, decision-making, RFC process, and releases.
##
Authors and Contributors
- Project authors can be found [here](https://github.com/The-FireHub-Project/FireHub-Meta/blob/master/.github/AUTHORS.md).
- The full list of individual contributors can be found [here](https://github.com/The-FireHub-Project/FireHub-Meta/blob/master/.github/CONTRIBUTORS.md).
##
Brand & Trademark
Please refer to [TRADEMARK.md](https://github.com/The-FireHub-Project/.github/blob/master/TRADEMARK.md) and [BRAND.md](https://github.com/The-FireHub-Project/.github/blob/master/BRAND.md) for guidelines on FireHub branding.
##
License
This software is licensed under the MIT License.
For more details, read the full license [here](./LICENSE).