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

ActiveLibrary[API Development](/categories/api)

omnilance/graphql-php-client
============================

A simple client to help execute queries and mutations across GraphQL

0.0.5(8y ago)42.7k21BSD-3-clausePHP

Since May 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/omnilance/graphql-php-client)[ Packagist](https://packagist.org/packages/omnilance/graphql-php-client)[ RSS](/packages/omnilance-graphql-php-client/feed)WikiDiscussions master Synced 4d ago

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

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

[](#omnilance-graphql-php-client)

A simple client to help execute queries and mutations across GraphQL

---

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

[](#installation)

`composer require omnilance/graphql-php-client`or `composer require "omnilance/graphql-php-client": ">=0.0.3"`

---

Simple Usage
------------

[](#simple-usage)

```
use Omnilance\GraphQL\Client;
$client = new Client($api_token);

```

additionaly you can set custom host

```
$client->setHost($host);

```

### Run query

[](#run-query)

```
$query = '{
	domain_check(domain: "rx-name.net" {
		cost,
		avail
	}
}';
$response = $client->response($query);

$query = '{
    	allDomains(first:10) {
		domain {
		    	id,
		    	name,
		    	register_date,
		    	expired_date,
		}
    }
}';

$response = $client->response($query);

foreach($response->allDomains->domain as $domain) {
    print $domain->name;
}

```

---

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

[](#response-class)

### 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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

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

Every ~9 days

Total

5

Last Release

3250d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b37b0170bf245d561a9974d5de59700df0563c00e27274ea094365566e1499f5?d=identicon)[omnilance](/maintainers/omnilance)

---

Top Contributors

[![omnilance](https://avatars.githubusercontent.com/u/8068164?v=4)](https://github.com/omnilance "omnilance (2 commits)")

---

Tags

phpclientgraphql

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[gmostafa/php-graphql-client

GraphQL client and query builder.

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

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)

PHPackages © 2026

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