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

AbandonedArchivedLibrary[API Development](/categories/api)

euautomation/graphql-client
===========================

A simple client to help execute queries and mutations across GraphQL

v0.3.0(6y ago)38392.2k↓40.8%18[4 PRs](https://github.com/euautomation/graphql-client/pulls)8MITPHP

Since Oct 18Pushed 3y ago3 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (8)Used By (8)

GraphQL Client
==============

[](#graphql-client)

A simple package to consume GraphQL APIs.

---

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

[](#installation)

`composer require euautomation/graphql-client`

---

Usage
-----

[](#usage)

Create an instance of `EUAutomation\GraphQL\Client`:

```
new Client($graphQLURL);

```

or

```
$client = new Client();
$client->setUrl($graphQLURL);

```

---

Response class
--------------

[](#response-class)

Pass in your query, optional variables and headers (eg bearer token), `$variables` and `$headers` are optional

`$response = $client->response($query, $variables, $headers);`

### all()

[](#all)

Use `$response->all();` to get all of the data returned in the response

### errors()

[](#errors)

Use `$response->errors();` to get all the errors returned in the response

### hasErrors()

[](#haserrors)

Use `$response->hasErrors();` to check if the response contains any errors

### Specific data from the response class

[](#specific-data-from-the-response-class)

For example purposes, let's assume you want to get a list of all categories and execute this query.

```
{
    allCategories(first:10) {
        category {
            id,
            name,
            slug,
            description
        }
    }
}

```

Now in order to fetch some meaningful data from the Response class you can do the following:

```
$categories = $response->allCategories->category;

foreach($categories as $category) {
    // Do something with the data?
    $category->id;
    $category->name;
    $category->slug;
    $category->description;
}

```

You can also set, unset or isset data on the Response class.

---

Other responses
---------------

[](#other-responses)

### Raw guzzle response

[](#raw-guzzle-response)

Pass in your query, optional variables and headers (eg bearer token), `$variables` and `$headers` are optional

`$client->raw($query, $variables, $headers);`

### Json

[](#json)

Pass in your query, optional variables and headers (eg bearer token), `$variables` and `$headers` are optional

`$client->json($query, $variables, $headers);`

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~587 days

Total

3

Last Release

2325d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/042af73825954ef2e445a17d81becf400c98b5a86026b0dc7a846e8a849bc2a0?d=identicon)[euautomation](/maintainers/euautomation)

---

Top Contributors

[![eNzyOfficial](https://avatars.githubusercontent.com/u/1686366?v=4)](https://github.com/eNzyOfficial "eNzyOfficial (11 commits)")[![alanwillms](https://avatars.githubusercontent.com/u/704204?v=4)](https://github.com/alanwillms "alanwillms (2 commits)")[![fragglebob](https://avatars.githubusercontent.com/u/551150?v=4)](https://github.com/fragglebob "fragglebob (2 commits)")[![alexbusu](https://avatars.githubusercontent.com/u/4104165?v=4)](https://github.com/alexbusu "alexbusu (1 commits)")[![hisash](https://avatars.githubusercontent.com/u/13863800?v=4)](https://github.com/hisash "hisash (1 commits)")[![ralfclaassens](https://avatars.githubusercontent.com/u/3406968?v=4)](https://github.com/ralfclaassens "ralfclaassens (1 commits)")

---

Tags

phpclientgraphql

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/euautomation-graphql-client/health.svg)

```
[![Health](https://phpackages.com/badges/euautomation-graphql-client/health.svg)](https://phpackages.com/packages/euautomation-graphql-client)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[gmostafa/php-graphql-client

GraphQL client and query builder.

3217.6M25](/packages/gmostafa-php-graphql-client)[resend/resend-php

Resend PHP library.

574.7M21](/packages/resend-resend-php)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
