interweberde/cakephp-graphql

GraphQL plugin for CakePHP

Installs: 2 091

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 3

Forks: 1

Open Issues: 0

Type:cakephp-plugin

dev-master 2023-11-21 16:00 UTC

This package is auto-updated.

Last update: 2024-04-21 16:45:36 UTC


README

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.

Project Status

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.

Maintenance

We currently cannot guarantee maintenance for this plugin. If you'd like to help us out voluntarily, please reach out via email!

Dependencies

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.

Installation

You can install this plugin into your CakePHP application using composer. The recommended way to install composer packages is:

composer require interweberde/cakephp-graphql

Example App

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

Testing

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.

Security

We ask you to report security issues as a responsible disclosure via email to security@interweber.de.