2017 © Pedro Peláez
 

symfony-bundle graphiql-bundle

Symfony GraphiQLBundle makes possible to render the UI into your symfony project

image

overblog/graphiql-bundle

Symfony GraphiQLBundle makes possible to render the UI into your symfony project

  • PHP
  • 2 Dependents
  • 1 Suggesters
  • 7 Forks
  • 6 Open issues
  • 5 Versions
  • 79 % Grown

The README.md

OverblogGraphiQLBundle

This Symfony bundle provides integration of GraphiQL interface to your Symfony application, (*1)

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads, (*2)

Installation

a) Download the bundle, (*3)

In the project directory:, (*4)

composer require --dev overblog/graphiql-bundle

Symfony Flex installation

Note If you are using Symfony Standard go to the next section, (*5)

a) Accept the contrib recipes installation from Symfony Flex, (*6)

-  WARNING  overblog/graphiql-bundle (0.1): From github.com/symfony/recipes-contrib
    The recipe for this package comes from the "contrib" repository, which is open to community contributions.
    Do you want to execute this recipe?
    [y] Yes
    [n] No
    [a] Yes for all packages, only for the current installation session
    [p] Yes permanently, never ask again for this project
    (defaults to n):

b) In case you don't have twig, (*7)

In the project directory:, (*8)

composer require twig

If you are using twig ONLY for graphiql you might want to use --dev during composer require, (*9)

Symfony Standard installation

a) Enable the bundle in the 'dev' section, (*10)

// in app/AppKernel.php
class AppKernel extends Kernel
{
    // ...

    public function registerBundles()
    {
        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            // ...
            $bundles[] = new Overblog\GraphiQLBundle\OverblogGraphiQLBundle();
        }
    }
}

b) Enable GraphiQL endpoint, (*11)

# in app/config/routing_dev.yml
overblog_graphiql_endpoint:
    resource: "@OverblogGraphiQLBundle/Resources/config/routing.xml"

Done

It's done now, navigate to /graphiql in your project url, (*12)

More

Community

Contributing

The Versions