interweberde / cakephp-graphql
CakePHP的GraphQL插件
dev-master
2023-11-21 16:00 UTC
Requires
- beberlei/porpaginas: ^v2.0
- cakephp/authentication: ^2.9.0
- cakephp/authorization: ^2.2.0
- cakephp/cakephp: ^4.0
- php-di/php-di: ^7.0.2
- thecodingmachine/graphqlite: ^v6.2.2
Requires (Dev)
- cakephp/cakephp-codesniffer: ^4.5.1
- interweberde/interweber-cs: ^2.0
- jetbrains/phpstorm-attributes: ^1.0
- phpunit/phpunit: ^9.5.20
- sirbrillig/phpcs-variable-analysis: ^2.8
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^5.12.0
This package is auto-updated.
Last update: 2024-09-19 16:56:21 UTC
README
此插件允许您从您的CakePHP-App提供GraphQL端点。但请注意,要使您的项目正常工作,可能需要一些努力。
项目状态
此软件包由@xyng在2022年CakeFest上展示,并在之后不久发布。目前文档不可用,但我们将在之后处理它!虽然我们在生产中使用此软件包的早期版本,但您目前应将其视为不稳定的。
维护
我们目前无法保证此插件的维护。如果您想自愿帮助我们,请通过电子邮件联系!
依赖关系
目前,此插件依赖于以下插件
cakephp/authentication
用于注入用户和限制API访问权限仅限于认证用户。cakephp/authorization
用于映射查询的作用域。
安装
您可以使用composer将此插件安装到您的CakePHP应用程序中。安装composer包的推荐方法是
composer require interweberde/cakephp-graphql
示例应用程序
使用此插件的示例CakePHP应用程序可以在以下位置找到: https://github.com/interweberde/cakephp-graphql-example。该存储库包含在CakeFest演讲中展示的精确后端。CakeFest演讲的幻灯片可在以下位置找到: https://damn-daniel.de/files/cakefest-2022-slides.pdf
测试
测试在位于TestApp/
的测试应用程序中运行。要成功运行测试,请在该目录中运行composer install
。然后,您可以使用composer run test
从此存储库的根目录运行测试。
安全
我们要求您通过电子邮件向security@interweber.de报告安全问题作为负责任披露
。