PHPackages                             fnash/graphql-qb - 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. fnash/graphql-qb

ActiveLibrary[API Development](/categories/api)

fnash/graphql-qb
================

A php GraphQL Query Builder. Nice API. Readable queries.

v1.2(5y ago)1263.8k↓14.9%9[1 issues](https://github.com/fnash/graphql-qb/issues)MITPHPPHP &gt;7CI failing

Since May 25Pushed 5y ago2 watchersCompare

[ Source](https://github.com/fnash/graphql-qb)[ Packagist](https://packagist.org/packages/fnash/graphql-qb)[ RSS](/packages/fnash-graphql-qb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9d410e2541ce0c07bb68e949f5a64a8f8d97c80c250591f106b2d8a4f434b7d5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f666e6173682f6772617068716c2d71622f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fnash/graphql-qb/?branch=master)[![Build Status](https://camo.githubusercontent.com/48116baf2b9602d7d9e7cac188d09261884fd6a13f2ee52253e3e2fccd90c07c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f666e6173682f6772617068716c2d71622f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/fnash/graphql-qb/build-status/master)

graphql-qb
==========

[](#graphql-qb)

A php GraphQL Query Builder. Nice API. Readable queries. Examples in Unit Tests.

Includes:

- Query / Mutation / Fragment
- Sorted Fields
- Custom Operation name
- A predictable operation name is generated if you don't specify one and add variables
- Add variables
- Add arguments
- Directives (Include / Skip)
- Sub query

TODO:

- Arguments in sub queries

```
