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.6(2mo ago)0823PHP

Since Jul 12Pushed 2mo 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 1mo ago

READMEChangelogDependencies (2)Versions (8)Used By (3)

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

42

—

FairBetter than 90% of packages

Maintenance88

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community13

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

Total

7

Last Release

61d 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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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