dev-master
9999999-dev https://github.com/malukenho/graphql-wrapperA small wrapper around webonyx/graphql-php
MIT
The Requires
- php ^7.1.0
The Development Requires
wrapper oop graphql
A small wrapper around webonyx/graphql-php
This library aims at providing an Object Oriented Way to execute GraphQL queries using
webonyx/graphql-php
without going crazy on unit test where it is being used on your code., (*1)
You should install webonyx/graphql-php
in order to use the wrapper., (*2)
The suggested installation method is via composer:, (*3)
composer require malukenho/graphql-wrapper
You don't need to configure anything special in order to use the wrapper, because all the API
from webonyx/graphql-php
is constructed based on static methods. The wrapper simply calls
the original static API wrapping it an object., (*4)
$client = new \Malukenho\GraphQL\GraphQLWrapper(); $client->executeQuery(/*...*/);
That provides us a more sane API to work, and it is way more easy to test., (*5)
A small wrapper around webonyx/graphql-php
MIT
wrapper oop graphql