bcerati / graphql-kit
GraphQL Kit for PHP applications
v0.0.2
2019-08-05 19:34 UTC
Requires
- ext-json: *
- symfony/config: ^4.3
- symfony/dependency-injection: ^4.3
- symfony/http-foundation: ^4.3
- symfony/http-kernel: ^4.3
- symfony/routing: ^4.3
- webonyx/graphql-php: ^0.13.5
This package is auto-updated.
Last update: 2024-12-10 21:50:47 UTC
README
Here is a little library that'll help you develop an API using GraphQL and Symfony without worrying about implementing a whole GraphQL server.
It uses the powerful graphql-php library.
Installation
Using composer, in your symfony project you can issue this command:
composer require bcerati/graphql-kit
Then register the routing. It'll create a GraphQL server for the POST
endpoint /api
:
api:
resource: '@BceratiGraphqlKitBundle/Resources/config/routing.yaml'
or if you want to change this endpoint:
api:
path: /lala
controller: 'Bcerati\GraphqlKit\Api\Server'
Finally, register the new installed bundle by adding this in your bundles.php
file:
Bcerati\GraphqlKit\BceratiGraphqlKitBundle::class => ['all' => true],