2017 © Pedro Peláez
 

library graphql-wrapper

A small wrapper around webonyx/graphql-php

image

malukenho/graphql-wrapper

A small wrapper around webonyx/graphql-php

  • Thursday, May 10, 2018
  • by malukenho
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

GraphQL Wrapper

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)

Requirement

You should install webonyx/graphql-php in order to use the wrapper., (*2)

Installation

The suggested installation method is via composer:, (*3)

composer require malukenho/graphql-wrapper

Example

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)

The Versions

10/05 2018

dev-master

9999999-dev https://github.com/malukenho/graphql-wrapper

A small wrapper around webonyx/graphql-php

  Sources   Download

MIT

The Requires

  • php ^7.1.0

 

The Development Requires

wrapper oop graphql