PHPackages                             softonic/graphql-client - 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. softonic/graphql-client

ActiveLibrary[API Development](/categories/api)

softonic/graphql-client
=======================

Softonic GraphQL client

3.1.2(3mo ago)1353.5M—10%266Apache-2.0PHPPHP ^8.0CI failing

Since Aug 21Pushed 3mo ago8 watchersCompare

[ Source](https://github.com/softonic/graphql-client)[ Packagist](https://packagist.org/packages/softonic/graphql-client)[ Docs](https://github.com/softonic/graphql-client)[ RSS](/packages/softonic-graphql-client/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (8)Versions (15)Used By (6)

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

[](#php-graphql-client)

[![Latest Version](https://camo.githubusercontent.com/7dd3c8c99dda905109ac09166cb3de92ef594e6def23270ab52bdc59af8fc184/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736f66746f6e69632f6772617068716c2d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/softonic/graphql-client/releases)[![Software License](https://camo.githubusercontent.com/36cfc741510e076bec951c1421a2b1c3a5553e953fcdb378339626a5f33c1e8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322e302d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://github.com/softonic/graphql-client/actions/workflows/build.yml/badge.svg)](https://github.com/softonic/graphql-client/actions/workflows/build.yml)[![Total Downloads](https://camo.githubusercontent.com/6fa781ff50d872e42084bfbcd9f0e1cd042b1244ede7a3d9505c77f6d072033e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f66746f6e69632f6772617068716c2d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/softonic/graphql-client)[![Average time to resolve an issue](https://camo.githubusercontent.com/69daba49dd449c2051fd96d69e9b31b567e9c021c0e32c75cb877e15c9633d99/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f736f66746f6e69632f6772617068716c2d636c69656e742e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/graphql-client "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/b904845c34d2c160f122d6b7508cca605a04ba017a848444bd4c59c8e7128541/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f736f66746f6e69632f6772617068716c2d636c69656e742e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/graphql-client "Percentage of issues still open")

PHP Client for [GraphQL](http://graphql.org/)

Main features
-------------

[](#main-features)

- Client with Oauth2 Support
- Easy query/mutation execution
- Simple array results for mutation and queries
- Powerful object results for mutation and queries
    - Filter results
    - Manipulate results precisely and bulk
    - Transform query results in mutations

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

[](#installation)

Via composer:

```
composer require softonic/graphql-client

```

Documentation
-------------

[](#documentation)

### Instantiate a client

[](#instantiate-a-client)

You can instantiate a simple client or with Oauth2 support.

#### Simple Client

[](#simple-client)

```
