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)16101.0k↓64%4MITPHPPHP ^7.1 || ^8.0

Since May 20Pushed 3y agoCompare

[ 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 2d 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 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community13

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

1633d 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

[drupal/core-dev

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

2022.6M344](/packages/drupal-core-dev)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[lipemat/phpstan-wordpress

Phpstan extension for working with WordPress

1462.8k1](/packages/lipemat-phpstan-wordpress)[nosto/module-nostotagging

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

27703.7k4](/packages/nosto-module-nostotagging)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[ergebnis/rector-rules

Provides rules for rector/rector.

10245.6k51](/packages/ergebnis-rector-rules)

PHPackages © 2026

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