PHPackages                             headzoo/graphql-php - 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. headzoo/graphql-php

ActiveLibrary[API Development](/categories/api)

headzoo/graphql-php
===================

PHP library that queries the Deskpro GraphQL API.

v1.0.5(8y ago)017.7k↓50%2[1 PRs](https://github.com/headzoo/deskpro-graphql-php/pulls)BSD-3-ClausePHPPHP &gt;=5.5

Since Feb 9Pushed 7y ago2 watchersCompare

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

READMEChangelogDependencies (4)Versions (7)Used By (0)

Deskpro PHP GraphQL Client
==========================

[](#deskpro-php-graphql-client)

PHP library that queries the Deskpro GraphQL API.

[![Build Status](https://camo.githubusercontent.com/06c0592450eaead01552f6e94701897d9cfde5996c4c0b78e6acd9efe51901ad/68747470733a2f2f7472617669732d63692e6f72672f686561647a6f6f2f6465736b70726f2d6772617068716c2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/headzoo/deskpro-graphql-php)

- [Installing](#installing)
- [Queries](#queries)
    - [Raw String](#queries)
    - [Query Builder](#query-builder)
    - [Multiple Fields](#multiple-fields)
    - [Aliases](#aliases)
    - [Fragments](#fragments)
    - [Directives](#directives)
- [Mutations](#mutations)
    - [Raw String](#mutations)
    - [Mutations Builder](#mutations-builder)
- [Types](#types)
- [Default Headers](#default-headers)
- [Logging](#logging)
- [Guzzle](#guzzle)
- [Testing](#testing)

Requirements
------------

[](#requirements)

- PHP 5.5+ with Composer

Installing
----------

[](#installing)

```
composer require deskpro/graphql-php

```

Queries
-------

[](#queries)

Raw strings may be used.

```
