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

ActiveLibrary[API Development](/categories/api)

convenia/graphql-client
=======================

Client to make graphql requests

2(8y ago)61.1k2PHPPHP &gt;=7.0

Since Feb 15Pushed 8y ago4 watchersCompare

[ Source](https://github.com/convenia/graphql-client)[ Packagist](https://packagist.org/packages/convenia/graphql-client)[ RSS](/packages/convenia-graphql-client/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

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

[](#php-graphql-client)

This package allows you to make GraphQL requests using pure PHP.

Implementation
--------------

[](#implementation)

The package has two basic classes, `Query` and `Mutation` that needs to be used when implementing a query or a mutation. In both cases you need to pass an instance of `GuzzleHttp\Client` and the base url. Every query or mutation needs also to set the name and desired output parameters.

### Example

[](#example)

```
use Convenia\GraphQLClient\Mutation;

class UpdateUserMutation extends Mutation
{
    protected $queryName = 'createUser';

    protected $outputParams = [
        'id',
        'name',
        'last_name'
    ];
}
```

Usage
-----

[](#usage)

When calling the mutation's methods you can choose between using the output params setted in the model, or you can also pass the desired params.

### Example

[](#example-1)

```
class User
{
    protected $client = new GuzzleHttp\Client();

    protected $baseUrl = 'http://www.mygraphqlapi/v1/graphql'

    public static function create($userId, $data, $returnParams = [])
    {
        $mutation = new UpdateUserMutation($this->baseUrl);

        $mutation->update($userId, $data, $returnParams);
    }
}
```

### Responses

[](#responses)

This package has a handler that deals with the response. This response class also deals with the possible GraphQL errors.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~14 days

Total

4

Last Release

3016d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/378751?v=4)[euventura](/maintainers/euventura)[@euventura](https://github.com/euventura)

![](https://avatars.githubusercontent.com/u/17324672?v=4)[Tauan Miguel Lemos](/maintainers/tauanlemos)[@tauanlemos](https://github.com/tauanlemos)

---

Top Contributors

[![tauanlemos](https://avatars.githubusercontent.com/u/17324672?v=4)](https://github.com/tauanlemos "tauanlemos (6 commits)")[![Arkanius](https://avatars.githubusercontent.com/u/6404401?v=4)](https://github.com/Arkanius "Arkanius (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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