2017 © Pedro Peláez
 

library lumen-graphql

GraphQL module for the Laravel and Lumen PHP frameworks.

image

digiaonline/lumen-graphql

GraphQL module for the Laravel and Lumen PHP frameworks.

  • Tuesday, June 5, 2018
  • by crisu83
  • Repository
  • 14 Watchers
  • 13 Stars
  • 1,915 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 5 Open issues
  • 20 Versions
  • 63 % Grown

The README.md

Lumen GraphQL

Build Status Coverage Status Scrutinizer Code Quality Latest Stable Version Total Downloads License, (*1)

GraphQL module for the Laravel and Lumen PHP frameworks., (*2)

Requirements

Usage

Installation

Run the following command to install the package through Composer:, (*3)

composer require digiaonline/lumen-graphql

Configure

Copy the configuration template in config/graphql.php to your application's config directory and modify according to your needs. For more information see the Configuration Files section in the Lumen documentation., (*4)

Available configuration options:, (*5)

  • schema string Schema class name, must be an instance of Youshido\GraphQL\Schema\Schema
  • type_resolver string Type resolver class name, must be an instance of Digia\Lumen\GraphQL\Contracts\TypeResolverInterface
  • processor string Optional processor class name, must be an instance of Youshido\GraphQL\Execution\Processor
  • enable_graphiql bool Whether or not the GraphiQL interface is enabled
  • graphiql_token string Token required for accessing the GraphiQL interface

Bootstrapping

Add the following line to bootstrap/app.php:, (*6)

$app->register(Digia\Lumen\GraphQL\GraphQLServiceProvider::class);

Add the following lines to routes/web.php:, (*7)

$router->get('/graphql', [
    'uses' => 'Digia\Lumen\GraphQL\Http\GraphQLController@renderGraphiQL',
]);

$router->post('/graphql', [
    'uses' => 'Digia\Lumen\GraphQL\Http\GraphQLController@handle',
]);

NOTE: Make sure that your route group does not have a namespace attribute. Otherwise Lumen will be unable to find the GraphQLController., (*8)

Contributing

Please read the guidelines., (*9)

License

See LICENSE., (*10)

The Versions

25/04 2018

dev-fix-cannot-generate-schema-lock-file

dev-fix-cannot-generate-schema-lock-file

GraphQL module for the Laravel and Lumen PHP frameworks.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sam Stenvall

06/02 2018
05/02 2018
24/01 2018

dev-allow-custom-query-for-update-schema-lock-cmd

dev-allow-custom-query-for-update-schema-lock-cmd

GraphQL module for the Laravel and Lumen PHP frameworks.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sam Stenvall

24/01 2018

dev-add-common-use-middleware-and-graphql-query

dev-add-common-use-middleware-and-graphql-query

GraphQL module for the Laravel and Lumen PHP frameworks.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sam Stenvall

12/11 2017

dev-random-fixes

dev-random-fixes

GraphQL module for the Laravel and Lumen PHP frameworks.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sam Stenvall

09/10 2017

dev-add-badge

dev-add-badge

GraphQL module for the Laravel and Lumen PHP frameworks.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sam Stenvall