PHPackages                             hecht-a/graphql-orm - 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. hecht-a/graphql-orm

ActiveSymfony-bundle[API Development](/categories/api)

hecht-a/graphql-orm
===================

GraphQL ORM for Symfony

v1.0.0(2mo ago)111↓50%MITPHPPHP ^8.2CI passing

Since Feb 28Pushed 2mo agoCompare

[ Source](https://github.com/hecht-a/graphql-orm)[ Packagist](https://packagist.org/packages/hecht-a/graphql-orm)[ Docs](https://github.com/hecht-a/graphql-orm)[ RSS](/packages/hecht-a-graphql-orm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (2)Used By (0)

GraphQL ORM
===========

[](#graphql-orm)

**GraphQL ORM** is a lightweight **GraphQL ORM for PHP/Symfony**, inspired by concepts from **Doctrine ORM**.

It allows you to map PHP objects to a GraphQL API using attributes, and provides repositories, a query builder, automatic hydration, relation handling, schema validation, and deep Symfony integration.

---

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

[](#installation)

```
composer require hecht-a/graphql-orm
```

Quick start
-----------

[](#quick-start)

```
# config/packages/graphql_orm.yaml
graphql_orm:
  endpoint: 'http://localhost:4000/graphql'
  mapping:
    entity:
      dir: '%kernel.project_dir%/src/GraphQL/Entity'
      namespace: App\GraphQL\Entity
    repository:
      dir: '%kernel.project_dir%/src/GraphQL/Repository'
      namespace: App\GraphQL\Repository
```

```
php bin/console graphqlorm:make:entity Task
```

```
$tasks = $taskRepository->findAll();

$tasks = $taskRepository->createQueryBuilder()
    ->select('id', 'title', 'user.name')
    ->where($qb->expr()->eq('status', 'active'))
    ->limit(10)
    ->getQuery()
    ->getResult();
```

---

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

[](#documentation)

- [Configuration](docs/configuration.md)
- [Entity mapping](docs/entity-mapping.md)
- [Repositories](docs/repositories.md)
- [Query Builder](docs/query-builder.md)
- [Pagination](docs/pagination.md)
- [Dialects](docs/dialects.md)
- [Schema validation](docs/schema-validation.md)
- [Logging](docs/logging.md)
- [Profiler](docs/profiler.md)
- [Hydration hooks](docs/hydration-hooks.md) — `#[BeforeHydrate]`, `#[AfterHydrate]`
- [Console commands](docs/commands.md)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance85

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

79d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24f942d3d2d4e3c275b93b017b969bec948ab51c10b57505213b78d4b1f5570e?d=identicon)[hecht-a](/maintainers/hecht-a)

---

Top Contributors

[![hecht-a](https://avatars.githubusercontent.com/u/50453254?v=4)](https://github.com/hecht-a "hecht-a (37 commits)")

---

Tags

graphql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hecht-a-graphql-orm/health.svg)

```
[![Health](https://phpackages.com/badges/hecht-a-graphql-orm/health.svg)](https://phpackages.com/packages/hecht-a-graphql-orm)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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