PHPackages                             polysource/adapter-doctrine - 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. polysource/adapter-doctrine

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

polysource/adapter-doctrine
===========================

Polysource — Doctrine ORM adapter: read+write any entity through the Polysource admin alongside non-Doctrine resources.

v0.9.0(3w ago)09↓100%MITPHPPHP &gt;=8.1

Since May 8Pushed 3w agoCompare

[ Source](https://github.com/polysource/adapter-doctrine)[ Packagist](https://packagist.org/packages/polysource/adapter-doctrine)[ Docs](https://github.com/polysource/polysource)[ RSS](/packages/polysource-adapter-doctrine/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (10)Versions (26)Used By (0)

polysource/adapter-doctrine
===========================

[](#polysourceadapter-doctrine)

> Doctrine ORM adapter for Polysource — generic read+write `DataSource` over any Doctrine entity.

Part of the [Polysource](https://github.com/polysource/polysource) monorepo. MIT-licensed.

When to use
-----------

[](#when-to-use)

The Doctrine cohabitation case from [ADR-012](../../docs/adr/0012-dual-product-positioning.md) — when a Polysource standalone admin needs to expose a Doctrine entity (lightweight cases) **alongside** an EasyAdmin instance handling the heavy CRUD.

For pure Doctrine CRUD, keep using EasyAdmin.

Install
-------

[](#install)

```
composer require polysource/adapter-doctrine
```

Register the bundle:

```
return [
    Polysource\Adapter\Doctrine\PolysourceAdapterDoctrineBundle::class => ['all' => true],
];
```

What it ships
-------------

[](#what-it-ships)

- **`DoctrineDataSource`** — implements `WritableDataSourceInterface` over `EntityManagerInterface`.
- **`DoctrineResource`** — non-final convenience base for declaring a Doctrine entity as a Polysource resource.
- **Whitelist filter properties** — only properties explicitly declared as filterable can be queried, preventing query injection.

Documentation
-------------

[](#documentation)

- [Adapter doctrine guide](../../docs/user/adapters/doctrine.md)
- [Cookbook — build your own adapter](../../docs/user/cookbook/build-your-own-adapter.md)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance95

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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 ~0 days

Total

25

Last Release

23d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/41d53ab82016651b0a4a9ef71644a54f934d8bf54ccbc59fc0183f994213ef38?d=identicon)[samaym](/maintainers/samaym)

---

Top Contributors

[![samaym](https://avatars.githubusercontent.com/u/11610014?v=4)](https://github.com/samaym "samaym (12 commits)")

---

Tags

adapterdoctrinephpphp8polysourcesymfonysymfonyormdoctrineadapterpolysource

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/polysource-adapter-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/polysource-adapter-doctrine/health.svg)](https://phpackages.com/packages/polysource-adapter-doctrine)
```

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1715.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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