PHPackages                             efabrica/nette-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. efabrica/nette-graphql

ActiveLibrary[API Development](/categories/api)

efabrica/nette-graphql
======================

Nette implementation of efabrica/graphql package.

0.2.7(1y ago)450.2k↓25%MITPHPPHP ^7.4|^8.0

Since Oct 24Pushed 1y ago4 watchersCompare

[ Source](https://github.com/efabrica-team/nette-graphql)[ Packagist](https://packagist.org/packages/efabrica/nette-graphql)[ RSS](/packages/efabrica-nette-graphql/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (6)Versions (11)Used By (0)

Nette GraphQL
=============

[](#nette-graphql)

This package is implementation of [efabrica/graphql](https://github.com/efabrica-team/graphql) and generates GraphQL schema from [nette database explorer](https://doc.nette.org/en/database/explorer).

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

[](#installation)

Via composer

```
composer require efabrica/nette-graphql
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

```
# config.neon

extensions:
    graphql: Efabrica\GraphQL\Nette\Bridge\DI\NetteGraphQLExtension

services:
    - Symfony\Component\String\Inflector\EnglishInflector

    graphql.schemaLoader:
        setup:
            - #...

    graphql.resolverFactory:
        setup:
            - #...
```

#### Loader options

[](#loader-options)

OptionDescriptionsetExceptTablesBlacklist tables from schema generationsetOnlyTablesWhitelist tables in schema generationsetExceptTableColumnsBlacklist table columns from schema generationsetOnlyTableColumnsWhitelist table columns in schema geneartionsetForcedHasManyLongNameWhen disabled, has many relation field names will be generated in format 'users' (table\_name) instead of 'users\_\_user\_id' (table\_name\_\_referencing\_column). This looks prettier, but can change your API in future (if there was only one reference to table but later on is added another, field name will change from short to long syntax as there can't be multiple fields with same name).setBelongsToReplacePatternThis pattern will be used when creating relation field names from referencing columns. Matching pattern will be removed from column name. By default text after last '\_' will be removed e.g 'user\_id' -&gt; 'user'addMorphRelationDefinitionYou can define morph relaiton that will be added to every resource. You need to define table that has morph relations, name of id and table columns that reference to morph resource and name of the relation that will be used by graphql server#### Resolver options

[](#resolver-options)

OptionDescriptionsetFirstPartyThis option will enable more complex queries, as column names won't be escaped. This for example enables you to add conditions on relations using 'related.colum' as column name. **THIS WILL ENABLE SQL INJECTION!** Use only when necessary and used only by trusted parties.### Query execution

[](#query-execution)

```
$input = json_decode(file_get_contents('php://input'), true);
$response = $graphQL->executeQuery($input['query']);
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.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 ~79 days

Recently: every ~41 days

Total

9

Last Release

668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25289c62a88df1c404543693ba52e44748dbce486bcfab91fc8c5931a6bb38e1?d=identicon)[dev-efabrica](/maintainers/dev-efabrica)

---

Top Contributors

[![MartinPetricko](https://avatars.githubusercontent.com/u/39132866?v=4)](https://github.com/MartinPetricko "MartinPetricko (12 commits)")[![riki137](https://avatars.githubusercontent.com/u/1223388?v=4)](https://github.com/riki137 "riki137 (1 commits)")

---

Tags

phpgraphqlnette

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/efabrica-nette-graphql/health.svg)

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

PHPackages © 2026

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