PHPackages                             ekino/phpstan-sonata - 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. ekino/phpstan-sonata

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

ekino/phpstan-sonata
====================

PHPStan extension for Sonata

v1.0.0(4y ago)3426.5k↓13.8%10[4 issues](https://github.com/ekino/phpstan-sonata/issues)[3 PRs](https://github.com/ekino/phpstan-sonata/pulls)MITPHPPHP ^7.3 || ^8.0CI failing

Since Jan 3Pushed 1y ago13 watchersCompare

[ Source](https://github.com/ekino/phpstan-sonata)[ Packagist](https://packagist.org/packages/ekino/phpstan-sonata)[ Docs](https://github.com/ekino/phpstan-sonata)[ RSS](/packages/ekino-phpstan-sonata/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (7)Versions (9)Used By (0)

PHPStan Sonata
==============

[](#phpstan-sonata)

[![Latest Stable Version](https://camo.githubusercontent.com/c37f14c2553df1b1a07c548d43d920d5cb88eeedd0713857b7a6b183576fcf90/68747470733a2f2f706f7365722e707567782e6f72672f656b696e6f2f7068707374616e2d736f6e6174612f762f737461626c65)](https://packagist.org/packages/ekino/phpstan-sonata)[![Build Status](https://camo.githubusercontent.com/15c5ddb84f5b9dd4b88480adaacfb82ec10abaac979a1028e98ff1393c8db389/68747470733a2f2f7472617669732d63692e6f72672f656b696e6f2f7068707374616e2d736f6e6174612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ekino/phpstan-sonata)[![Coverage Status](https://camo.githubusercontent.com/6b8f42ba1b50cee31dffd43a10b73c14b4bec5c83c443ef8802bb611d9635403/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f656b696e6f2f7068707374616e2d736f6e6174612f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/ekino/phpstan-sonata?branch=master)[![Total Downloads](https://camo.githubusercontent.com/0b05ac4c8ad257bc88c89ef9cb80525435474f7c5ce1e0be9cf1114f4a6f0e34/68747470733a2f2f706f7365722e707567782e6f72672f656b696e6f2f7068707374616e2d736f6e6174612f646f776e6c6f616473)](https://packagist.org/packages/ekino/phpstan-sonata)

Usage
-----

[](#usage)

To use this extension, require it using [Composer](https://getcomposer.org/):

```
composer require --dev ekino/phpstan-sonata
```

If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!

 Manual installationIf you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:

```
includes:
	- vendor/ekino/phpstan-sonata/extension.neon
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% 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 ~258 days

Total

5

Last Release

1704d ago

Major Versions

v0.3.0 → v1.0.02021-11-02

PHP version history (3 changes)v0.0.1PHP ^7.1

v0.3.0PHP ^7.2 || ^8.0

v1.0.0PHP ^7.3 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![mremi](https://avatars.githubusercontent.com/u/548536?v=4)](https://github.com/mremi "mremi (39 commits)")[![Daric971](https://avatars.githubusercontent.com/u/24455611?v=4)](https://github.com/Daric971 "Daric971 (5 commits)")[![bdejacobet](https://avatars.githubusercontent.com/u/1875787?v=4)](https://github.com/bdejacobet "bdejacobet (2 commits)")[![rande](https://avatars.githubusercontent.com/u/14672?v=4)](https://github.com/rande "rande (2 commits)")[![Simperfit](https://avatars.githubusercontent.com/u/3451634?v=4)](https://github.com/Simperfit "Simperfit (2 commits)")[![franmomu](https://avatars.githubusercontent.com/u/720690?v=4)](https://github.com/franmomu "franmomu (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![agorden-ekino](https://avatars.githubusercontent.com/u/113043979?v=4)](https://github.com/agorden-ekino "agorden-ekino (1 commits)")[![mazsudo](https://avatars.githubusercontent.com/u/2480227?v=4)](https://github.com/mazsudo "mazsudo (1 commits)")

---

Tags

phpphpstan-extensionqualityPHPStanSonata Project

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ekino-phpstan-sonata/health.svg)

```
[![Health](https://phpackages.com/badges/ekino-phpstan-sonata/health.svg)](https://phpackages.com/packages/ekino-phpstan-sonata)
```

###  Alternatives

[larastan/larastan

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

6.5k55.4M8.4k](/packages/larastan-larastan)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

4853.5M91](/packages/shipmonk-dead-code-detector)[ergebnis/phpstan-rules

Provides rules for phpstan/phpstan.

4579.8M286](/packages/ergebnis-phpstan-rules)[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87718.9k56](/packages/ticketswap-phpstan-error-formatter)[timeweb/phpstan-enum

Enum class reflection extension for PHPStan

443.4M27](/packages/timeweb-phpstan-enum)[johnbillion/wp-compat

PHPStan extension to help verify that your PHP code is compatible with a given version of WordPress

25166.1k18](/packages/johnbillion-wp-compat)

PHPackages © 2026

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