PHPackages                             sal/phpstan-readonly-enforcing - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. sal/phpstan-readonly-enforcing

ActivePhpstan-extension[Testing &amp; Quality](/categories/testing)

sal/phpstan-readonly-enforcing
==============================

PHPStan rule to enforce readonly usage on properties and classes when safe to do so

v0.5(1y ago)0228[1 PRs](https://github.com/zeroSal/phpstan-readonly-enforcing/pulls)MITPHP ^8.2

Since Jun 13Compare

[ Source](https://github.com/zeroSal/phpstan-readonly-enforcing)[ Packagist](https://packagist.org/packages/sal/phpstan-readonly-enforcing)[ RSS](/packages/sal-phpstan-readonly-enforcing/feed)WikiDiscussions Synced today

READMEChangelogDependencies (4)Versions (8)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/zeroSal/phpstan-readonly-enforcing).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance48

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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 ~1 days

Total

5

Last Release

382d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/903331?v=4)[Salomon Mir](/maintainers/sal)[@sal](https://github.com/sal)

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/sal-phpstan-readonly-enforcing/health.svg)

```
[![Health](https://phpackages.com/badges/sal-phpstan-readonly-enforcing/health.svg)](https://phpackages.com/packages/sal-phpstan-readonly-enforcing)
```

###  Alternatives

[larastan/larastan

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

6.5k55.4M8.4k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79475.7M2.2k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67272.8M1.4k](/packages/phpstan-phpstan-doctrine)[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.

4853.5M91](/packages/shipmonk-dead-code-detector)[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.

33422.6M550](/packages/spaze-phpstan-disallowed-calls)[tomasvotruba/cognitive-complexity

PHPStan rules to measure cognitive complexity of your classes and methods

1635.6M287](/packages/tomasvotruba-cognitive-complexity)

PHPackages © 2026

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