PHPackages                             isaac/phpstan-magento2-stubs - 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. isaac/phpstan-magento2-stubs

Abandoned → [iodigital-com/phpstan-magento2-stubs](/?search=iodigital-com%2Fphpstan-magento2-stubs)Phpstan-extension[Utility &amp; Helpers](/categories/utility)

isaac/phpstan-magento2-stubs
============================

PHPStan Magento 2 stub files

v1.3.0(5mo ago)23.9k↓50%3MITPHPPHP ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

Since Jan 12Pushed 5mo ago4 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (11)Used By (0)

PHPStan Magento 2 stubfiles
===========================

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

[PHPStan](https://phpstan.org/) stubfiles for the Magento 2 framework. Currently the stub files are targeted towards the 2.4.7.x version.

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

[](#installation)

```
composer require --dev iodigital-com/phpstan-magento2-stubs
```

If you use the [phpstan/extension-installer](https://github.com/phpstan/extension-installer) package. You do not need any further configuraton. However if you do not use this package. Add the following configuration to your `phpstan.neon` file.

```
includes:
  - ./vendor/iodigital-com/phpstan-magento2-stubs/extension.neon
```

```
## Notes

```

It is not possible to replace @method in stubFiles since it will overwrite the complete phpdoc. This means you will have to copy all the @methods from that specific class. Please ignore this in your PHPStan Baseline.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance77

Regular maintenance activity

Popularity25

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 52.2% 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 ~151 days

Recently: every ~67 days

Total

8

Last Release

155d ago

PHP version history (3 changes)1.0.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0

v1.2.1PHP ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0

v1.3.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/80809e7caf8341b1bac3d759e2b159a38b9bdab2deee5b0d4d66de6c83b992d1?d=identicon)[IntractoSupport](/maintainers/IntractoSupport)

![](https://www.gravatar.com/avatar/9e723dd83f374215e85b05fa260826f267bcef0dfb1026246ca1d845ae4f3a39?d=identicon)[JeroenNoten](/maintainers/JeroenNoten)

![](https://www.gravatar.com/avatar/6f1ed5a230a1b7a889ad5bb727fc43f070e2d57ad9f857625226096cbfcc80c7?d=identicon)[aadmathijssen](/maintainers/aadmathijssen)

![](https://www.gravatar.com/avatar/5270be3fd791a1045f0d928c0ca5d801d2c9dac77b83338a8ac877b94c6f7934?d=identicon)[mischabraam](/maintainers/mischabraam)

---

Top Contributors

[![alainvdzanden](https://avatars.githubusercontent.com/u/111735645?v=4)](https://github.com/alainvdzanden "alainvdzanden (12 commits)")[![melvinversluijs](https://avatars.githubusercontent.com/u/10958064?v=4)](https://github.com/melvinversluijs "melvinversluijs (4 commits)")[![jeroennoten](https://avatars.githubusercontent.com/u/4370753?v=4)](https://github.com/jeroennoten "jeroennoten (3 commits)")[![aadmathijssen](https://avatars.githubusercontent.com/u/3796971?v=4)](https://github.com/aadmathijssen "aadmathijssen (2 commits)")[![LoogleCZ](https://avatars.githubusercontent.com/u/13019504?v=4)](https://github.com/LoogleCZ "LoogleCZ (1 commits)")[![youriseijkens-io](https://avatars.githubusercontent.com/u/120475374?v=4)](https://github.com/youriseijkens-io "youriseijkens-io (1 commits)")

### Embed Badge

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

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

###  Alternatives

[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87578.8k35](/packages/ticketswap-phpstan-error-formatter)[slam/phpstan-extensions

Slam extension of phpstan

702.5M74](/packages/slam-phpstan-extensions)[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[johnbillion/wp-compat

PHPStan extension to help verify that your PHP code is compatible with a given version of WordPress

24115.0k10](/packages/johnbillion-wp-compat)

PHPackages © 2026

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