PHPackages                             simpod/graphql-utils - 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. simpod/graphql-utils

ActiveLibrary[API Development](/categories/api)

simpod/graphql-utils
====================

GraphQL Utils for graphql-php

0.7.4(9mo ago)13153.3k—4.5%3[1 issues](https://github.com/simPod/GraphQL-Utils/issues)2MITPHPPHP ^8.3CI passing

Since Aug 3Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/simPod/GraphQL-Utils)[ Packagist](https://packagist.org/packages/simpod/graphql-utils)[ GitHub Sponsors](https://github.com/simPod)[ RSS](/packages/simpod-graphql-utils/feed)WikiDiscussions 0.7.x Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (27)Used By (2)

PHP GraphQL Utils for graphql-php
=================================

[](#php-graphql-utils-for-graphql-php)

[![GitHub Actions](https://github.com/simPod/GraphQL-Utils/workflows/CI/badge.svg)](https://github.com/simPod/GraphQL-Utils/actions?query=workflow%3A%22CI%22+branch%3A0.7.x)[![Code Coverage](https://camo.githubusercontent.com/468cc16683ba2318a1592bf1101017a7968f560a1a1d3880c743134bb5cb7246/68747470733a2f2f636f6465636f762e696f2f67682f73696d506f642f4772617068514c2d5574696c732f6272616e63682f302e372e782f67726170682f62616467652e737667)](https://codecov.io/gh/simPod/GraphQL-Utils/branch/0.7.x)[![Downloads](https://camo.githubusercontent.com/f8cea493680facf25fab83f04fe14c45bc002c27141ed2ac480c49c012233961/68747470733a2f2f706f7365722e707567782e6f72672f73696d706f642f6772617068716c2d7574696c732f642f746f74616c2e737667)](https://packagist.org/packages/simpod/graphql-utils)[![Packagist](https://camo.githubusercontent.com/f8cb082c1b7a3b52246341cd8112bbf70731e1454faea41e12958a6b194d00b8/68747470733a2f2f706f7365722e707567782e6f72672f73696d706f642f6772617068716c2d7574696c732f762f737461626c652e737667)](https://packagist.org/packages/simpod/graphql-utils)[![Infection MSI](https://camo.githubusercontent.com/085cce2f714660e4f607a604b350ff0f21000f5ea902ee861303468b490edf06/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324673696d506f642532464772617068514c2d5574696c73253246302e372e78)](https://dashboard.stryker-mutator.io/reports/github.com/simPod/GraphQL-Utils/0.7.x)

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

[](#installation)

Add as [Composer](https://getcomposer.org/) dependency:

```
composer require simpod/graphql-utils
```

Features
--------

[](#features)

### Schema Builders

[](#schema-builders)

Instead of defining your schema as an array, use can use more objective-oriented approach. This library provides set of strictly typed builders that help you build your schema:

- EnumBuilder
- FieldBuilder
- InputFieldBuilder
- InputObjectBuilder
- InterfaceBuilder
- ObjectBuilder
- TypeBuilder
- UnionBuilder

#### ObjectBuilder and FieldBuilder

[](#objectbuilder-and-fieldbuilder)

✔️ Standard way with `webonyx/graphql-php`

```
