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

ActiveLibrary[API Development](/categories/api)

commadore/graphql-qb
====================

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

v3.2.0(6y ago)13.1k2[1 PRs](https://github.com/commadore/graphql-qb/pulls)MITPHPPHP ^7.2

Since May 25Pushed 2y agoCompare

[ Source](https://github.com/commadore/graphql-qb)[ Packagist](https://packagist.org/packages/commadore/graphql-qb)[ RSS](/packages/commadore-graphql-qb/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (2)Versions (13)Used By (0)

Refactored version of .
------------------------------------------------------------

[](#refactored-version-of-httpsgithubcomfnashgraphql-qb)

I have a use case where I need to mock this lib, so statics and traits aren't desirable

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

[](#graphql-qb)

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

Includes:

- Query / Mutation / Fragment
- Sorted Fields
- Mandatory Operation Object
- Add variables
- Add arguments
- Directives (Include / Skip)
- Sub query

TODO:

- Arguments in sub queries

```
