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 1mo ago

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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

1285d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30aaf0db0441cada5c2d80127a9123e7f6f4091f7faf79d3f13001ef379373f4?d=identicon)[EvilFreelancer](/maintainers/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

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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