blackcube / graphql
GraphQL read-only API for Blackcube CMS
1.0.0
2026-04-07 17:03 UTC
Requires
- php: >=8.3
- blackcube/dcore: ^1.0
- psr/http-message: ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
- webonyx/graphql-php: ^15.31
Requires (Dev)
- httpsoft/http-message: ^1.1
- vlucas/phpdotenv: ^5.6
- yiisoft/db-mysql: ^2.0
This package is auto-updated.
Last update: 2026-04-07 17:08:26 UTC
README
Read-only GraphQL API for Blackcube CMS. Exposes Content, Tag, Menu, Language, Parameter, Author with their relations and elastic data. No mutations — query API for headless frontends.
Quickstart
composer require blackcube/graphql
{
contents(filters: { languageId: "fr" }) {
id
name
slug { path }
blocs {
elastic {
... on ElasticHero { title image }
}
}
}
}
Documentation
- Installation — requirements, configuration, route
- Schema — root queries, types, filters, pagination, elastic types
- Integration — PSR and Yii integration
License
BSD-3-Clause. See LICENSE.md.