PHPackages                             smile/magento2-smilelab-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. smile/magento2-smilelab-phpstan

ActivePhpstan-extension

smile/magento2-smilelab-phpstan
===============================

PHPStan extension for Magento projects.

1.0.4(1y ago)030.3k↓43.9%1OSL-3.0PHPPHP ^7.4 || ^8.0CI passing

Since Sep 19Pushed 1y ago8 watchersCompare

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

READMEChangelog (4)Dependencies (3)Versions (6)Used By (1)

SmileLab PHPStan Extension
==========================

[](#smilelab-phpstan-extension)

Description
-----------

[](#description)

This extension is meant to be used on Magento projects and modules.

The src folder is copied from `https://github.com/magento/magento2/tree/2.4.5/dev/tests/static/framework/Magento/PhpStan`.

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

[](#installation)

To use this extension, require it in composer:

```
composer require --dev smile/magento2-smilelab-phpstan
```

Configuration
-------------

[](#configuration)

Create a configuration file named `phpstan.neon.dist` at the root of your project.

Example for a Magento project:

```
parameters:
    level: 6
    checkMissingIterableValueType: false
    paths:
        - app/code
```

Exemple for a community module:

```
parameters:
    level: 6
    checkMissingIterableValueType: false
    phpVersion: {{min_php_version}}
    paths:
        - .
    excludePaths:
        - 'vendor/*'
```

Where `{{min_php_version}}` is the minimum compatible version of PHP required by your module. For example, if the min version is PHP 7.4:

```
phpVersion: 70400
```

If you also install phpstan/extension-installer then you're all set!

Otherwise, add the following configuration to this file:

```
includes:
    - vendor/smile/magento2-smilelab-phpstan/extension.neon
```

Usage
-----

[](#usage)

You can run the phpstan analysis with this command:

```
vendor/bin/phpstan analyse
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance40

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~166 days

Total

5

Last Release

672d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c4859b63b960878ef37185d533dbd629247859679dfcdf465259d6a4a488ee7?d=identicon)[romainruaud](/maintainers/romainruaud)

![](https://www.gravatar.com/avatar/53fd29100f3b7087742b99c75f58c5488b95a3858d68636f3ad6d3d8b5f91168?d=identicon)[rbayet](/maintainers/rbayet)

![](https://www.gravatar.com/avatar/965d8c2ff0fdcac3a8b6058d27705410e735b11b6a0e926fcd0cc6c2ce87e4ba?d=identicon)[guvra](/maintainers/guvra)

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

---

Top Contributors

[![guvra](https://avatars.githubusercontent.com/u/3967259?v=4)](https://github.com/guvra "guvra (21 commits)")[![PierreGauthier](https://avatars.githubusercontent.com/u/4659198?v=4)](https://github.com/PierreGauthier "PierreGauthier (6 commits)")

### Embed Badge

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

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

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[graycore/magento2-graphql-introspection-cache

1015.2k](/packages/graycore-magento2-graphql-introspection-cache)

PHPackages © 2026

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