youshido/silex-graphql

Silex graphql controller provider

v0.0.2 2016-06-02 14:04 UTC

This package is not auto-updated.

Last update: 2024-10-26 19:53:44 UTC


README

This is a Silex controller provider to PHP GraphQL Library

To add GraphQL server to your project, just add these lines to your php file:

$schema = new YourProjectSchema();
$app->mount('/graphql', new GraphQLControllerProvider($schema));

GraphQL schema definition documentation with examples you can find here.