PHPackages                             aonach/magento2-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. aonach/magento2-phpstan

ActivePhpstan-extension[Utility &amp; Helpers](/categories/utility)

aonach/magento2-phpstan
=======================

PhpStan extension to support Magento 2

v0.8.6(3y ago)137.7k↑63.9%MITPHPPHP ^7.1 || ^8.0

Since May 20Pushed 3y agoCompare

[ Source](https://github.com/aonach/magento2-phpstan)[ Packagist](https://packagist.org/packages/aonach/magento2-phpstan)[ RSS](/packages/aonach-magento2-phpstan/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (14)Used By (0)

PHPStan Extension - Magento 2
=============================

[](#phpstan-extension---magento-2)

The extension bootstraps the same autoloader that is run when using Magento 2's unit tests. By default it will place the generated class under var/. Change the environment variable `TESTS_TEMP_DIR` to change the folder.

### Installation Instructions via Composer

[](#installation-instructions-via-composer)

```
composer require --dev aonach/magento2-phpstan

```

### Note on required use of `phpstan/extension-installer`

[](#note-on-required-use-of-phpstanextension-installer)

 Manual installationIf the use of `phpstan/extension-installer` is not working for you undo the installation by adding

```
    "replace": {
        "phpstan/extension-installer": "*"
    },

```

to your project's composer.json file. Then manually include extension.neon in your project's PHPStan config:

```
includes:
    - vendor/aonach/magento2-phpstan/extension.neon

```

Or as an alternative approach you can check out

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 57.6% 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 ~115 days

Recently: every ~217 days

Total

11

Last Release

1399d ago

PHP version history (2 changes)v0.5.0PHP ^7.1

v0.8.6PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/12e8ba472efdb1825a0734281d1bd3922ab50a8864738302136fd5164e8e8192?d=identicon)[developers-aonach](/maintainers/developers-aonach)

![](https://avatars.githubusercontent.com/u/28786669?v=4)[Evgeny Levinsky](/maintainers/elevinskii)[@elevinskii](https://github.com/elevinskii)

---

Top Contributors

[![kristof-ringleff](https://avatars.githubusercontent.com/u/47804013?v=4)](https://github.com/kristof-ringleff "kristof-ringleff (19 commits)")[![elevinskii-aonach](https://avatars.githubusercontent.com/u/54027348?v=4)](https://github.com/elevinskii-aonach "elevinskii-aonach (4 commits)")[![AaronONeill](https://avatars.githubusercontent.com/u/5518296?v=4)](https://github.com/AaronONeill "AaronONeill (3 commits)")[![joesken](https://avatars.githubusercontent.com/u/19315012?v=4)](https://github.com/joesken "joesken (2 commits)")[![convenient](https://avatars.githubusercontent.com/u/600190?v=4)](https://github.com/convenient "convenient (2 commits)")[![enriquetarazona](https://avatars.githubusercontent.com/u/11299022?v=4)](https://github.com/enriquetarazona "enriquetarazona (1 commits)")[![mavinbe](https://avatars.githubusercontent.com/u/13540771?v=4)](https://github.com/mavinbe "mavinbe (1 commits)")[![sreichel](https://avatars.githubusercontent.com/u/5022236?v=4)](https://github.com/sreichel "sreichel (1 commits)")

### Embed Badge

![Health badge](/badges/aonach-magento2-phpstan/health.svg)

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

###  Alternatives

[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87578.8k35](/packages/ticketswap-phpstan-error-formatter)[lillik/magento2-price-decimal

Magento 2 Price Decimal Precision

111147.5k](/packages/lillik-magento2-price-decimal)[nosto/module-nostotagging

Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.

27659.1k4](/packages/nosto-module-nostotagging)[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[doofinder/doofinder-magento2

Doofinder module for Magento 2

13204.0k1](/packages/doofinder-doofinder-magento2)[lipemat/phpstan-wordpress

Phpstan extension for working with WordPress

1256.3k1](/packages/lipemat-phpstan-wordpress)

PHPackages © 2026

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