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

ActiveLibrary[API Development](/categories/api)

wappcode/graphql-basic-client
=============================

1.0.7(2mo ago)01454PHP

Since Jul 12Pushed 3mo ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (9)Used By (4)

GraphQL Basic Client
====================

[](#graphql-basic-client)

Allows making queries to a graphql API.

Gets an array as result

Requirements
------------

[](#requirements)

Needs curl extension enabled

Install
-------

[](#install)

```
composer require wappcode/graphql-basic-client

```

Use
---

[](#use)

Query

```
$client = new GQLClient("http://graphql-api");
        $query = '
        query  {
            users {
            id
            name
            firstname
            lastname
            email
            }
        }
        ';
        $result = $client->execute($query);

```

Mutation

```
$client = new GQLClient("http://graphql-api");
	$query = '
	mutation MutationCreateUser($input: UserInput) {
		user: createUser(input: $input) {
          id
		  name
		  firstname
		  lastname
		  email
		}
	  }
	';
	$variables = [
		"input" => [
			"firstname" => "John",
			"lastname" => "Doe",
			"email" => "johndoe@demo.com"
		]
	];
	$headers = [
		"Authorization: Bearer jwt"
	];
	$result = $client->execute($query, $variables, $headers);

```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance82

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity49

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 ~144 days

Recently: every ~22 days

Total

8

Last Release

75d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ea30fd347bc300e2f0fe249208d3cc71410a68d08e881107b6ca86af2d20592?d=identicon)[wappcode](/maintainers/wappcode)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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