PHPackages                             selrahcd/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. selrahcd/phpstan-rules

ActiveLibrary

selrahcd/phpstan-rules
======================

Set of PHPStan rules

00PHP

Since May 13Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHPStan rules
=============

[](#phpstan-rules)

A set of useful PHPStan rules

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

[](#installation)

To use this extension, require it in [Composer](https://getcomposer.org/):

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

```

If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!

 Manual installationIf you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:

```
includes:
    - vendor/phpstan/phpstan-mockery/extension.neon

```

Rules
-----

[](#rules)

DisallowIsArrayFunctionCall
---------------------------

[](#disallowisarrayfunctioncall)

A rule that prevents from using `\is_array`.

CountFuncCallUsage
------------------

[](#countfunccallusage)

A configurable rule that prevents from using more function calls than we already do.

Configure:

```
parameters:
    watched_funcCalls:
        watched:
            '\is_array': 4

```

Will warn you if you start using more than 4 calls to `\is_array`. You can add as many functions to watch as you want.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8b61aed68526d9ff82e7ab7a22409b1cac7e82735af4b7611a789a82665af1d?d=identicon)[SelrahcD](/maintainers/SelrahcD)

---

Top Contributors

[![SelrahcD](https://avatars.githubusercontent.com/u/1864786?v=4)](https://github.com/SelrahcD "SelrahcD (36 commits)")

### Embed Badge

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

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

PHPackages © 2026

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