Search by

commadore / graphql-client

commadore

A php GraphQL Client.

Package info

github.com/commadore/graphql-client

pkg:composer/commadore/graphql-client

Statistics

Installs: 3 026

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 2

v0.2.0 2019-10-07 08:53 UTC

This package is auto-updated.

Last update: 2026-08-20 04:35:59 UTC


README

PHP GraphQL Client

Essentially a wrapper for Guzzle for GraphQL queries.

Inject a Guzzle Client, one method that takes a GraphQL Query, (optional) variables, (optional) headers.

Returns GraphQLResponse object with getPayload, getErrors methods to get at your delicious data. Both return associative arrays.

Allows Guzzle exceptions to bubble up other than TransferException which is thrown as a custom Network Exception