PHPackages                             evilfreelancer/simplegqlient - 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. evilfreelancer/simplegqlient

ActiveLibrary[API Development](/categories/api)

evilfreelancer/simplegqlient
============================

The simplest GraphQL client written in PHP

1.0.0(3y ago)16MITPHPPHP ^7.4|^8.0

Since Nov 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/EvilFreelancer/simplegqlient)[ Packagist](https://packagist.org/packages/evilfreelancer/simplegqlient)[ RSS](/packages/evilfreelancer-simplegqlient/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

SimpleGQLient - Simple GraphQL client
=====================================

[](#simplegqlient---simple-graphql-client)

The simplest GraphQL client written in PHP. Inspired by the [Lighthouse PHP](https://lighthouse-php.com/) project, in particular by [embedded client](https://github.com/nuwave/lighthouse/blob/master/src/Testing/MakesGraphQLRequests.php)that can be used for testing of Laravel-based GraphQL implementation of server.

```
composer require evilfreelancer/simplegqlient
```

Small example
-------------

[](#small-example)

```
require_once __DIR__ . '/../vendor/autoload.php';

$githubToken = 'xxx';

$client = new \SimpleGQLient\Client('https://api.github.com/graphql', [
    'Authorization' => 'Bearer ' . $githubToken,
    'Accept'        => 'application/vnd.github.hawkgirl-preview+json,',
]);

$response = $client->graphQL(/** @lang GraphQL */ '
{
  user(login: "evilfreelancer") {
    repositories(ownerAffiliations: OWNER, isFork: false, first: 100) {
      nodes {
        name
        languages(first: 10, orderBy: { field: SIZE, direction: DESC }) {
          edges {
            size
            node {
              color
              name
            }
          }
        }
      }
    }
  }
}
');

// \Psr\Http\Message\ResponseInterface in response
$output = $response->getBody()->getContents();
var_dump($output);
```

Roadmap
-------

[](#roadmap)

- Basic client
- Multipart support

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1340d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9089568?v=4)[Pavel Zloi](/maintainers/EvilFreelancer)[@EvilFreelancer](https://github.com/EvilFreelancer)

---

Top Contributors

[![EvilFreelancer](https://avatars.githubusercontent.com/u/9089568?v=4)](https://github.com/EvilFreelancer "EvilFreelancer (3 commits)")

---

Tags

api-clientgraphqlgraphql-client

### Embed Badge

![Health badge](/badges/evilfreelancer-simplegqlient/health.svg)

```
[![Health](https://phpackages.com/badges/evilfreelancer-simplegqlient/health.svg)](https://phpackages.com/packages/evilfreelancer-simplegqlient)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

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

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[avalara/avataxclient

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

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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