This Plugin allows you to provide a GraphQL-Endpoint from your CakePHP-App. Be aware though, that some effort is required to get your stuff working.
This Package was presented by @xyng at CakeFest 2022 and published shortly after. Documentation is currently not available but we'll work on it! While we do use an earlier version of this package in production, you should currently take on this as being unstable.
We currently cannot guarantee maintenance for this plugin. If you'd like to help us out voluntarily, please reach out via email!
Currently, this plugin depends on the following plugins:
cakephp/authentication
for injecting user and limiting api-access to authenticated users.cakephp/authorization
to scope mapped queries.
You can install this plugin into your CakePHP application using composer. The recommended way to install composer packages is:
composer require interweberde/cakephp-graphql
An Example CakePHP App using this Plugin can be found here: https://github.com/interweberde/cakephp-graphql-example. That Repository contains the exact Backend that was shown in the CakeFest-Talk. The Slides for the CakeFest-Talk are available here: https://damn-daniel.de/files/cakefest-2022-slides.pdf
Tests are run in a Test App located under TestApp/
. To run tests successfully, run composer install
in that directory.
You can then run tests from the root directory of this repository with composer run test
.
We ask you to report security issues as a responsible disclosure
via email to [email protected].