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

ActiveLibrary

yarec/graphql-client
====================

graphql

1.0.1(7y ago)0971PHP

Since Jan 19Pushed 7y ago1 watchersCompare

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

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

### Usage

[](#usage)

```
$endpoint = 'http://api.example.com/graphql';
$client = new Client($endpoint);

// for one
$opts = [
    'args' => [
        'id'=> 1234
    ],
    'resp' => [
        'id',
        'name',
        'email'
    ]
];

$data = $client->query('user', $opts);

//for list
$opts = [
    'params' => [
        'per_page' => 3,
        'page' => 2,
    ],
    'args' => ['sex' => 'male'],
    'resp' => [
        'data' => [
            'id',
            'name',
            'email'
        ]
    ]
];

$data = $this->client->query('users', $opts);

```

### DEV

[](#dev)

composer config repositories.gql-client path $PATH/yarec/graphql-client

composer require yarec/graphql-client -vvv

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

2674d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/026ee6300d4121ddb303ce606a2ec840f8d5c03ee93c7742893ec4fa00ea4d3c?d=identicon)[yarec](/maintainers/yarec)

---

Top Contributors

[![yarec](https://avatars.githubusercontent.com/u/1519413?v=4)](https://github.com/yarec "yarec (9 commits)")

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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