graphicms / graphql
Wrapper arround GraphQL package to meet the needs of GraphiCMS
Requires
- php: ^7.1
- illuminate/support: 5.7.*|5.8.*
- rebing/graphql-laravel: ^1.19.1
Requires (Dev)
- orchestra/testbench: 3.7.*
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-10-27 05:52:14 UTC
README
This is the package used by GraphiCMS to serve GraphQL schemas. It is based on rebing/graphql-laravel but we had do modify it so meet our needs (a lot of closures support, dynamic queries and mutations and so on). We'll try to keep it in sync with the base package as most as we can.
Installation
You can install the package via composer:
composer require graphicms/graphql
Usage
The service auto registers using Laravel's auto discovery package. You can publish the config files of the package using
php artisan vendor:publish --provider="Graphicms\GraphQL\GraphQLServiceProvider" --tag=config
By default the package publishes the routes with graphi/
prefix. You can change this in the config file changing the keys prefix
and graphiql.prefix
.
This package also comes bundled with Graphiql, the browser IDE form GraphQl. You can check it out using http://[yoursite]//graphi/graphiql/{graphql_schema?} (this is also configurable).
All the functionality from rebing/graphql-laravel exists here too, but we also have a few dynamic queries, types and mutations support.
Documentation will come later.
Warning
Though this package can be installed standalone, it is meant to be used alongside GraphiCMS, the api-first CMS for Laravel. THE SOFTWARE IS PROVIDED "AS IS", like the License says.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email filip@pacurar.net instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.