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 2w 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

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

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

2566d 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

[larastan/larastan

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

6.4k51.0M7.7k](/packages/larastan-larastan)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k100.2M2.1k](/packages/behat-behat)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k28.9M2.2k](/packages/infection-infection)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79473.3M2.0k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67270.7M1.3k](/packages/phpstan-phpstan-doctrine)[phparkitect/phparkitect

Enforce architectural constraints in your PHP applications

9184.1M24](/packages/phparkitect-phparkitect)

PHPackages © 2026

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