PHPackages                             mark-gerarts/phpstan-automapper-plus - 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. mark-gerarts/phpstan-automapper-plus

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

mark-gerarts/phpstan-automapper-plus
====================================

PHPStan configuration for AutoMapper+

0.1.0(6y ago)0124.5k↓31.2%1[1 issues](https://github.com/mark-gerarts/phpstan-automapper-plus/issues)[1 PRs](https://github.com/mark-gerarts/phpstan-automapper-plus/pulls)1MIT

Since Aug 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mark-gerarts/phpstan-automapper-plus)[ Packagist](https://packagist.org/packages/mark-gerarts/phpstan-automapper-plus)[ RSS](/packages/mark-gerarts-phpstan-automapper-plus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (1)

AutoMapper+ PHPStan configuration
=================================

[](#automapper-phpstan-configuration)

This package provides a configuration for [AutoMapper+](https://github.com/mark-gerarts/automapper-plus). It serves as a workaround for the problem described in [this issue](https://github.com/mark-gerarts/automapper-plus/issues/42).

Background
----------

[](#background)

Basically, we introduced a third parameter (`$context`) to the `map` method of the `MapperInterface`. This was introduced after the 1.0 release, so to prevent introducing breaking changes, the interface doesn't explicitly have the `$context` parameter. It will be explicitly added in the 2.0 release.

But, in the meantime PHPStan will complain about the missing parameter if you use it in your code. The message will be something like this:

```
Method AutoMapperPlus\MapperInterface::map() invoked with 3 parameters, 2 required.

```

This package suppresses these errors.

Usage and installation
----------------------

[](#usage-and-installation)

This package is installed automatically with the base library. To enable it there are 2 options:

- Using [phpstan/extension-installer](https://github.com/phpstan/extension-installer). This will register the extension automatically.
- Manually register the configuration.

```
includes:
    - vendor/mark-gerarts/phpstan-automapper-plus/phpstan.neon
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

2475d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e5db0e8c786f8e48872431f833a215d8f58d5bced2aae66989e936cd171d985?d=identicon)[mark-gerarts](/maintainers/mark-gerarts)

---

Top Contributors

[![mark-gerarts](https://avatars.githubusercontent.com/u/11940560?v=4)](https://github.com/mark-gerarts "mark-gerarts (2 commits)")[![vcastro45](https://avatars.githubusercontent.com/u/16238958?v=4)](https://github.com/vcastro45 "vcastro45 (1 commits)")

### Embed Badge

![Health badge](/badges/mark-gerarts-phpstan-automapper-plus/health.svg)

```
[![Health](https://phpackages.com/badges/mark-gerarts-phpstan-automapper-plus/health.svg)](https://phpackages.com/packages/mark-gerarts-phpstan-automapper-plus)
```

###  Alternatives

[mrsuh/php-bison-skeleton

PHP skeleton for Bison

3810.4k1](/packages/mrsuh-php-bison-skeleton)

PHPackages © 2026

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