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

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

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

PHPStan extension for Magento projects.

1.0.4(1y ago)033.2k↓38.5%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 yesterday

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

Maintenance38

Infrequent updates — may be unmaintained

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

718d ago

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/2353374?v=4)[Richard Bayet](/maintainers/rbayet)[@rbayet](https://github.com/rbayet)

![](https://avatars.githubusercontent.com/u/3967259?v=4)[guvra](/maintainers/guvra)[@guvra](https://github.com/guvra)

![](https://avatars.githubusercontent.com/u/4659198?v=4)[PierreGauthier](/maintainers/PierreGauthier)[@PierreGauthier](https://github.com/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

[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)[humanmade/coding-standards

Human Made Coding Standards

160443.1k59](/packages/humanmade-coding-standards)[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)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20280.7k20](/packages/shopsys-coding-standards)[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)
