PHPackages                             ncrypthic/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. [API Development](/categories/api)
4. /
5. ncrypthic/doctrine-graphql

ActiveLibrary[API Development](/categories/api)

ncrypthic/doctrine-graphql
==========================

Doctrine to GraphQL adapter

2.0.0(5y ago)2891[5 issues](https://github.com/ncrypthic/doctrine-graphql/issues)1MITPHPCI failing

Since May 26Pushed 5y ago2 watchersCompare

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

READMEChangelogDependencies (4)Versions (8)Used By (1)

doctrine-graphql
================

[](#doctrine-graphql)

[![Build Status](https://camo.githubusercontent.com/ed1ad15f769f6c374183b02d9c0fe03dc4d956e43c228b77013cd779b969b9ee/68747470733a2f2f7472617669732d63692e636f6d2f6e63727970746869632f646f637472696e652d6772617068716c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/ncrypthic/doctrine-graphql)[![Documentation Status](https://camo.githubusercontent.com/a07667d99571b6d69ecccdfb46ad472508b049eb198cd7405779067dead2ed56/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f646f637472696e652d6772617068716c2f62616467652f3f76657273696f6e3d6c6174657374)](https://doctrine-graphql.readthedocs.io/en/latest/?badge=latest)

[Doctrine ORM](https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/) to [PHP GraphQL](https://webonyx.github.io/graphql-php/) bridge.

How it works
------------

[](#how-it-works)

This library provides a [DoctrineGraphQL](https://github.com/ncrypthic/doctrine-graphql/blob/master/src/DoctrineGraphQL.php) builder class to build all Doctrine entities as GraphQL types by following a [naming convention](docs/types.md#naming-conventions).

For every entity class mapped to GraphQL object type it will create basic GraphQL Query and Mutations.

Installation
------------

[](#installation)

```
composer require ncrypthic/doctrine-graphql

```

Usage
-----

[](#usage)

```
use LLA\DoctrineGraphQL\DoctrineGraphQL;
use GraphQL\Server\Helper;
use GraphQL\Server\ServerConfig;

/* @var EntityManager $em */
// Get Doctrine's entity manager

$builder = new DoctrineGraphQL();
$builder
    ->buildTypes($em)
    ->buildQueries($em)
    ->buildMutations($em);

$schema = $builder->toGraphQLSchema();
$config = ServerConfig::create(['schema'=>$schema]);

$helper = new Helper();
$req = $helper->parseHttpRequest();

$res = is_array($req)
  ? $helper->executeBatch($config, $req)
  : $helper->executeOperation($config, $req);
```

Queries
-------

[](#queries)

See [Queries](docs/queries.md)

Mutations
---------

[](#mutations)

See [Mutations](docs/mutations.md)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% 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 ~80 days

Recently: every ~100 days

Total

6

Last Release

2140d ago

Major Versions

1.2.1 → 2.0.02020-07-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c26f7887d1b0ea2e527417307094f7bb79eedfb013ca23da226c760b75c1aa5?d=identicon)[ncrypthic](/maintainers/ncrypthic)

---

Top Contributors

[![ncrypthic](https://avatars.githubusercontent.com/u/564038?v=4)](https://github.com/ncrypthic "ncrypthic (42 commits)")[![composer-stm](https://avatars.githubusercontent.com/u/13685363?v=4)](https://github.com/composer-stm "composer-stm (3 commits)")

---

Tags

doctrine-ormgraphqlphp7

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ncrypthic-doctrine-graphql/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[thecodingmachine/graphqlite

Write your GraphQL queries in simple to write controllers (using webonyx/graphql-php).

5723.1M30](/packages/thecodingmachine-graphqlite)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[flowpack/media-ui

This module allows managing media assets including pictures, videos, audio and documents.

2184.5k2](/packages/flowpack-media-ui)[worksome/graphlint

A static analysis tool for GraphQL

13189.4k](/packages/worksome-graphlint)[rubix/server

Deploy your Rubix ML models to production with scalable stand-alone inference servers.

632.3k](/packages/rubix-server)

PHPackages © 2026

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