Search by

blackcube / graphql

pgaultier

GraphQL read-only API for Blackcube CMS

Package info

github.com/blackcubeio/graphql

pkg:composer/blackcube/graphql

Statistics

Installs: 2

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-09-04 10:33 UTC

This package is auto-updated.

Last update: 2026-09-04 11:01:29 UTC


README

Read-only GraphQL API for Blackcube CMS. Exposes Content, Tag, Menu, Language, Parameter, Author with their relations and elastic data, plus relevance-ranked full-text search. No mutations — query API for headless frontends.

License Packagist Version

Quickstart

composer require blackcube/graphql
{
  contents(filters: { languageId: "fr" }) {
    id
    name
    slug { path }
    blocs {
      elastic {
        ... on ElasticHero { title image }
      }
    }
  }
}

Full-text search across published Contents and Tags, ranked by relevance:

{
  search(query: "newsletter", pagination: { size: 10 }) {
    contents { id name slug { path } }
    tags { id name }
  }
}

Integration

Host Wiring
Yii3 auto-registered via config-plugin, POST route on routePrefix
Slim / PSR $app->add($container->get(PsrGraphqlMiddleware::class))
Laravel register GraphqlServiceProvider, $middleware->append(LaravelGraphqlMiddleware::class)

Documentation

  • Installation — requirements, configuration, Yii/Slim/Laravel wiring
  • Schema — root queries, types, filters, pagination, elastic types
  • Integration — PSR, Yii and Laravel integration

License

BSD-3-Clause. See LICENSE.md.