PHPackages                             api-skeletons/zf-doctrine-graphql - 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. api-skeletons/zf-doctrine-graphql

Abandoned → [api-skeletons/doctrine-orm-graphql](/?search=api-skeletons%2Fdoctrine-orm-graphql)Library[Database &amp; ORM](/categories/database)

api-skeletons/zf-doctrine-graphql
=================================

GraphQL for Doctrine using Hydrators

3.0.0(5y ago)3614.7k—0%3[1 issues](https://github.com/API-Skeletons/zf-doctrine-graphql/issues)MITPHPCI failing

Since Jun 10Pushed 5y ago4 watchersCompare

[ Source](https://github.com/API-Skeletons/zf-doctrine-graphql)[ Packagist](https://packagist.org/packages/api-skeletons/zf-doctrine-graphql)[ RSS](/packages/api-skeletons-zf-doctrine-graphql/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (19)Used By (0)

GraphQL for Doctrine using Hydrators
====================================

[](#graphql-for-doctrine-using-hydrators)

[![Build Status](https://camo.githubusercontent.com/916aaec8263763f58d282a677ee725dab87054ea9a5821bdc878863513a69fc1/68747470733a2f2f7472617669732d63692e6f72672f4150492d536b656c65746f6e732f7a662d646f637472696e652d6772617068716c2e737667)](https://travis-ci.org/API-Skeletons/zf-doctrine-graphql)[![Coverage](https://camo.githubusercontent.com/ebf3d7cf3305d43fc15180935b5d468c34698e1263b2af9125db6d0ccdeb1ca1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4150492d536b656c65746f6e732f7a662d646f637472696e652d6772617068716c2f62616467652e7376673f6272616e63683d6d617374657226313234)](https://coveralls.io/repos/github/API-Skeletons/zf-doctrine-graphql/badge.svg?branch=master&124)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)[![Gitter](https://camo.githubusercontent.com/c45f0485e89d3cd41f666d7d4bb5875cb59836555e05b6b11f77ed223eb64c0c/68747470733a2f2f6261646765732e6769747465722e696d2f6170692d736b656c65746f6e732f6f70656e2d736f757263652e737667)](https://gitter.im/api-skeletons/open-source)[![Patreon](https://camo.githubusercontent.com/f9e075baad95563481d35174d43ef50757281abb6bc795d0f473fad452afa030/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617472656f6e2d646f6e6174652d79656c6c6f772e737667)](https://www.patreon.com/apiskeletons)[![Total Downloads](https://camo.githubusercontent.com/e17de7f517b45ad30b2f136755c70fbaa1786271e4c0edfcfe6af6e5eb13196d/68747470733a2f2f706f7365722e707567782e6f72672f6170692d736b656c65746f6e732f7a662d646f637472696e652d6772617068716c2f646f776e6c6f616473)](https://packagist.org/packages/api-skeletons/zf-doctrine-graphql)

This library uses Doctrine native traversal of related objects to provide full GraphQL querying of entities and all related fields and entities. Entity metadata is introspected and is therefore Doctrine data driver agnostic. Data is collected with hydrators thereby allowing full control over each field using hydrator filters, strategies and naming strategies. Multiple object managers are supported. Multiple hydrator configurations are supported. Works with [GraphiQL](https://github.com/graphql/graphiql).

[A range of filters](http://graphql.apiskeletons.com/en/latest/queries.html)are provided to filter collections at any location in the query.

Doctrine provides easy taversal of your database. Consider the following imaginary query:

```
$entity[where id = 5]
  ->getRelation()
    ->getField1()
    ->getField2()
    ->getManyToOne([where name like '%dev%'])
      ->getName()
      ->getField3()
  ->getOtherRelation()
    ->getField4()
    ->getField5()
```

And see it realized in GraphQL with fine grained control over each field via hydrators:

```
  {
    entity (filter: { id: 5 }) {
      relation {
        field1
        field2
        manyToOne (filter: { name_contains: 'dev' }) {
          name
          field3
        }
      } otherRelation {
        field4
        field5
      }
    }
  }
```

[Read the Documentation](http://graphql.apiskeletons.com)
=========================================================

[](#read-the-documentation)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

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

Recently: every ~206 days

Total

18

Last Release

2051d ago

Major Versions

0.2.0 → 1.0.02018-06-21

1.0.6 → 2.0.02018-07-03

2.0.3 → 3.0.02020-10-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/49dd7d9dba889ac674b0da447d9c1e69d1128dc3ccbaef98ba83d6ee519fc2d6?d=identicon)[tom\_anderson](/maintainers/tom_anderson)

---

Top Contributors

[![TomHAnderson](https://avatars.githubusercontent.com/u/493920?v=4)](https://github.com/TomHAnderson "TomHAnderson (238 commits)")

---

Tags

doctrinegraphqlhydratorhydrator-filtersstrategies

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/api-skeletons-zf-doctrine-graphql/health.svg)

```
[![Health](https://phpackages.com/badges/api-skeletons-zf-doctrine-graphql/health.svg)](https://phpackages.com/packages/api-skeletons-zf-doctrine-graphql)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[doctrine/mongodb-odm

PHP Doctrine MongoDB Object Document Mapper (ODM) provides transparent persistence for PHP objects to MongoDB.

1.1k23.3M302](/packages/doctrine-mongodb-odm)[knplabs/doctrine-behaviors

Doctrine Behavior Traits

92212.7M64](/packages/knplabs-doctrine-behaviors)[cycle/orm

PHP DataMapper ORM and Data Modelling Engine

1.3k835.4k65](/packages/cycle-orm)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[doctrine/phpcr-odm

PHP Doctrine Content Repository Object Document Mapper (ODM) provides transparent persistence for PHP objects.

1811.5M97](/packages/doctrine-phpcr-odm)

PHPackages © 2026

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