An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          



release


version


GitHub license

## 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



GitHub created at


GitHub release date


GitHub last commit (branch)


GitHub activity (branch)


GitHub contributors


GitHub language count


GitHub top language


GitHub repo size


GitHub code size

## FireHub Icon Installation

![Packagist PHP Version](https://img.shields.io/packagist/dependency-v/firehub/phpstan-rules/php?version=v1.0.0&style=flat&logo=data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+UEhQPC90aXRsZT48cGF0aCBmaWxsPSIjOTU5ZGE1IiBkPSJNNy4wMSAxMC4yMDdoLS45NDRsLS41MTUgMi42NDhoLjgzOGMuNTU2IDAgLjk3LS4xMDUgMS4yNDItLjMxNC4yNzItLjIxLjQ1NS0uNTU5LjU1LTEuMDQ5LjA5Mi0uNDcuMDUtLjgwMi0uMTI0LS45OTUtLjE3NS0uMTkzLS41MjMtLjI5LTEuMDQ3LS4yOXpNMTIgNS42ODhDNS4zNzMgNS42ODggMCA4LjUxNCAwIDEyczUuMzczIDYuMzEzIDEyIDYuMzEzUzI0IDE1LjQ4NiAyNCAxMmMwLTMuNDg2LTUuMzczLTYuMzEyLTEyLTYuMzEyem0tMy4yNiA3LjQ1MWM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agist Stars](https://img.shields.io/packagist/stars/firehub/phpstan-rules?style=flat&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjOTU5ZGE1Ij48cGF0aCBkPSJtMzU0LTI4NyAxMjYtNzYgMTI2IDc3LTMzLTE0NCAxMTEtOTYtMTQ2LTEzLTU4LTEzNi01OCAxMzUtMTQ2IDEzIDExMSA5Ny0zMyAxNDNaTTIzMy0xMjBsNjUtMjgxTDgwLTU5MGwyODgtMjUgMTEyLTI2NSAxMTIgMjY1IDI4OCAyNS0yMTggMTg5IDY1IDI4MS0yNDctMTQ5LTI0NyAxNDlabTI0Ny0zNTBaIi8+PC9zdmc+&logoColor=959da5&labelColor=31373e)
![Packagist Downloads](https://img.shields.io/packagist/dt/firehub/phpstan-rules?style=flat&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjOTU5ZGE1Ij48cGF0aCBkPSJNNDgwLTMyMCAyODAtNTIwbDU2LTU4IDEwNCAxMDR2LTMyNmg4MHYzMjZsMTA0LTEwNCA1NiA1OC0yMDAgMjAwWk0yNDAtMTYwcS0zMyAwLTU2LjUtMjMuNVQxNjAtMjQwdi0xMjBoODB2MTIwaDQ4MHYtMTIwaDgwdjEyMHEwIDMzLTIzLjUgNTYuNVQ3MjAtMTYwSDI0MFoiLz48L3N2Zz4=&logoColor=959da5&labelColor=31373e)

Install via Composer (development dependency recommended):

```bash
composer require --dev firehub/phpstan-rules
```

## FireHub Icon Usage

Enable the extension in your phpstan.neon:

```txt
includes:
- vendor/firehub/phpstan-rules/rule.neon
- vendor/firehub/phpstan-rules/type.neon
```

## FireHub Icon 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.

## FireHub Icon Security

[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/The-FireHub-Project/PHPStan-Rules/badge)](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.

## FireHub Icon 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.

## FireHub Icon 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).

## FireHub Icon 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.

## FireHub Icon License

This software is licensed under the MIT License.

For more details, read the full license [here](./LICENSE).