PHPackages                             rey26/phpstan-rules - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. rey26/phpstan-rules

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

rey26/phpstan-rules
===================

Reusable custom PHPStan rules for Rey26 projects.

v1.0.2(1mo ago)0270—5.8%MITPHPPHP &gt;=8.4CI passing

Since Jul 12Pushed 1mo agoCompare

[ Source](https://github.com/rey26/phpstan-rules)[ Packagist](https://packagist.org/packages/rey26/phpstan-rules)[ RSS](/packages/rey26-phpstan-rules/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

rey26/phpstan-rules
===================

[](#rey26phpstan-rules)

Reusable custom [PHPStan](https://phpstan.org/) rules for Rey26 projects.

Rules
-----

[](#rules)

RuleNodeDescription`EasyAdminActionExistsRule``MethodCall`Ensures action names passed to `linkToCrudAction()` refer to an existing **public** method on the current `AbstractCrudController`.`TypeHintArrowFunctionsRule``ArrowFunction`Requires every arrow function parameter and its return value to declare an explicit type.Installation
------------

[](#installation)

```
composer require --dev rey26/phpstan-rules
```

### Auto-registration

[](#auto-registration)

If the consuming project uses [`phpstan/extension-installer`](https://github.com/phpstan/extension-installer), the rules are registered automatically via the `extra.phpstan.includes` entry in `composer.json`:

```
composer require --dev phpstan/extension-installer
```

Otherwise, include the config manually in your `phpstan.neon`:

```
includes:
    - vendor/rey26/phpstan-rules/phpstan.neon
```

Development
-----------

[](#development)

```
composer install
vendor/bin/phpunit
```

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance90

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

50d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.3

v1.0.2PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/44d03042d46514abaf5f5f1a6514e84d732ece727ca9b2c90e17bab747fce4e7?d=identicon)[rey26](/maintainers/rey26)

---

Top Contributors

[![rey26](https://avatars.githubusercontent.com/u/26801450?v=4)](https://github.com/rey26 "rey26 (9 commits)")

---

Tags

PHPStanstatic analysisrules

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rey26-phpstan-rules/health.svg)

```
[![Health](https://phpackages.com/badges/rey26-phpstan-rules/health.svg)](https://phpackages.com/packages/rey26-phpstan-rules)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k66.6M11.2k](/packages/larastan-larastan)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

5124.9M119](/packages/shipmonk-dead-code-detector)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67577.1M1.6k](/packages/phpstan-phpstan-doctrine)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79580.6M2.7k](/packages/phpstan-phpstan-symfony)[spaze/phpstan-disallowed-calls

PHPStan rules to detect disallowed method &amp; function calls, constant, namespace, attribute, property &amp; superglobal usages, with powerful rules to re-allow a call or a usage in places where it should be allowed.

34124.2M676](/packages/spaze-phpstan-disallowed-calls)[staabm/phpstan-dba

2972.7M2](/packages/staabm-phpstan-dba)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
