PHPackages                             ntzm/strict-casts-phpstan - 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. ntzm/strict-casts-phpstan

ActiveLibrary[Testing &amp; Quality](/categories/testing)

ntzm/strict-casts-phpstan
=========================

PHPStan rule to ensure you're using strict casts wherever possible

1.1.0(7y ago)211MITPHP

Since Jun 21Pushed 7y agoCompare

[ Source](https://github.com/ntzm/strict-casts-phpstan)[ Packagist](https://packagist.org/packages/ntzm/strict-casts-phpstan)[ RSS](/packages/ntzm-strict-casts-phpstan/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Strict Casts PHPStan Rule
=========================

[](#strict-casts-phpstan-rule)

Ensure you're using [strict casts](https://github.com/ntzm/strict-casts) wherever possible

Installation
------------

[](#installation)

```
$ composer require ntzm/strict-casts-phpstan

```

In your PHPStan config, add:

```
includes:
    - vendor/ntzm/strict-casts-phpstan/rules.neon

```

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

2

Last Release

2611d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/103460227?v=4)[natzim](/maintainers/natzim)[@natzim](https://github.com/natzim)

---

Top Contributors

[![ntzm](https://avatars.githubusercontent.com/u/3888578?v=4)](https://github.com/ntzm "ntzm (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ntzm-strict-casts-phpstan/health.svg)

```
[![Health](https://phpackages.com/badges/ntzm-strict-casts-phpstan/health.svg)](https://phpackages.com/packages/ntzm-strict-casts-phpstan)
```

###  Alternatives

[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67475.0M1.5k](/packages/phpstan-phpstan-doctrine)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79378.2M2.5k](/packages/phpstan-phpstan-symfony)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136411.0k14](/packages/rector-rector-src)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2613.3M487](/packages/ssch-typo3-rector)[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.

5014.2M110](/packages/shipmonk-dead-code-detector)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k20](/packages/tempest-framework)

PHPackages © 2026

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