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

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

sharoff45/library-phpstan-rules
===============================

Provides additional rules for phpstan/phpstan.

v1.0.1(3y ago)09.3k12proprietaryPHPPHP &gt;=8.0

Since Jun 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Sharoff45/library-phpstan-rules)[ Packagist](https://packagist.org/packages/sharoff45/library-phpstan-rules)[ RSS](/packages/sharoff45-library-phpstan-rules/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (11)Versions (3)Used By (2)

composer:

```
composer require --dev sharoff45/library-phpstan-rules

```

Создайте в корне проекта файл phpstan.neon со следующим содержимым:

```
includes:
  - vendor/sharoff45/library-phpstan-rules/general-extension.neon
#  - vendor/sharoff45/library-phpstan-rules/symfony-extension.neon  # раскомментировать, если используется symfony
#  - vendor/sharoff45/library-phpstan-rules/symfony-controller-extension.neon  # раскомментировать, если нужны правила для контроллеров
#  - vendor/sharoff45/library-phpstan-rules/phpunit-extension.neon  # раскомментировать, если используется phpunit

```

или скопируйте его из примера:

```
cp ./vendor/sharoff45/library-phpstan-rules/phpstan.example ./phpstan.neon

```

Использование
=============

[](#использование)

```
bin/phpstan analyse

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~263 days

Total

2

Last Release

1266d ago

### Community

Maintainers

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

---

Top Contributors

[![Sharoff45](https://avatars.githubusercontent.com/u/7892544?v=4)](https://github.com/Sharoff45 "Sharoff45 (2 commits)")[![potorochin-aero](https://avatars.githubusercontent.com/u/85935567?v=4)](https://github.com/potorochin-aero "potorochin-aero (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli-tests

WP-CLI testing framework

423.3M150](/packages/wp-cli-wp-cli-tests)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2023.2M367](/packages/drupal-core-dev)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

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

Symfony Framework extensions and rules for PHPStan

79378.2M2.5k](/packages/phpstan-phpstan-symfony)[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.2M111](/packages/shipmonk-dead-code-detector)[orrison/meliorstan

Provides PHPStan rules for improved code quality by detecting code smells and possible issues. In addition to enforcing particular naming and code style conventions to reduce bike-shedding.

1920.1k6](/packages/orrison-meliorstan)

PHPackages © 2026

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