PHPackages                             fooman/phpstan-magento2-magic-methods - 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. fooman/phpstan-magento2-magic-methods

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

fooman/phpstan-magento2-magic-methods
=====================================

PhpStan extension to support Magento 2's use of magic methods

v0.7.4(4y ago)1699.0k↓35.1%4MITPHPPHP ^7.1 || ^8.0

Since May 20Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (9)Used By (0)

We are likely going to stop supporting this package in the near future. Changes in phpstan's autoloading are surfacing load order / class existence issues leading to classes being generated when they should be found via Composer's autoloading. As  does not have the same issue and does provide similar functionality we suggest checking it out instead as we will likely adopt it for our uses.

PHPStan Extension - Magento 2 Magic Methods
===========================================

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

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 fooman/phpstan-magento2-magic-methods:^0.7

```

### 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/fooman/phpstan-magento2-magic-methods/extension.neon

```

Or as an alternative approach you can check out

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 84% 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 ~138 days

Recently: every ~191 days

Total

8

Last Release

1587d ago

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

v0.7.4PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/375f14d0764181d464de53f75008cf58c61f6c348e2649a9700699612a7ede65?d=identicon)[fooman](/maintainers/fooman)

---

Top Contributors

[![kristof-ringleff](https://avatars.githubusercontent.com/u/47804013?v=4)](https://github.com/kristof-ringleff "kristof-ringleff (21 commits)")[![convenient](https://avatars.githubusercontent.com/u/600190?v=4)](https://github.com/convenient "convenient (2 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/fooman-phpstan-magento2-magic-methods/health.svg)

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

###  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)
