PHPackages                             runtothefather/doctrine-psalm-plugin - 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. [Database &amp; ORM](/categories/database)
4. /
5. runtothefather/doctrine-psalm-plugin

ActivePsalm-plugin[Database &amp; ORM](/categories/database)

runtothefather/doctrine-psalm-plugin
====================================

Repository resolver to show psalm how to resolve getRepository method

0.6(6y ago)76.3k2MITPHPCI failing

Since Jan 10Pushed 6y ago2 watchersCompare

[ Source](https://github.com/runtothefather/doctrine-psalm-plugin)[ Packagist](https://packagist.org/packages/runtothefather/doctrine-psalm-plugin)[ RSS](/packages/runtothefather-doctrine-psalm-plugin/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (7)Used By (0)

doctrine-psalm-plugin
=====================

[](#doctrine-psalm-plugin)

By default psalm doesn't recognize return type for cases like this

`$object->getRepository(Entity::class)`

where $object can be instance of

> Doctrine\\Common\\Persistence\\ObjectManager
> Symfony\\Bridge\\Doctrine\\RegistryInterface
> Doctrine\\Common\\Persistence\\AbstractManagerRegistry
> Doctrine\\Common\\Persistence\\ManagerRegistry

repository class from `@ORM\Entity(repositoryClass="Doctrine\Common\Persistence\ObjectRepository")`will be returned

Usage
-----

[](#usage)

Add into your psalm.xml file into `` section line

``

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~8 days

Total

6

Last Release

2275d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30cb0fb1883155a5c15da38f0bae922429adcf38e053e16e05ce06b64d11dbe5?d=identicon)[runtothefather](/maintainers/runtothefather)

---

Top Contributors

[![runtothefather](https://avatars.githubusercontent.com/u/8307619?v=4)](https://github.com/runtothefather "runtothefather (7 commits)")

---

Tags

phppluginstatic analysiscodeinspectionormdoctrinedbaldoctrine2extensionpsalmpsalm-plugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/runtothefather-doctrine-psalm-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/runtothefather-doctrine-psalm-plugin/health.svg)](https://phpackages.com/packages/runtothefather-doctrine-psalm-plugin)
```

###  Alternatives

[weirdan/doctrine-psalm-plugin

Stubs to let Psalm understand Doctrine better

876.9M50](/packages/weirdan-doctrine-psalm-plugin)[ocramius/doctrine-batch-utils

A set of utilities to operate with Doctrine ORM's batch processing functionality

3331.6M6](/packages/ocramius-doctrine-batch-utils)[lctrs/psalm-psr-container-plugin

Let Psalm understand better psr11 containers

17648.1k13](/packages/lctrs-psalm-psr-container-plugin)

PHPackages © 2026

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