se7enxweb / ezplatform-graphql
GraphQL server for the eZ Platform Open Source CMS Repository.
Installs: 0
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 16
Type:ezplatform-bundle
Requires
- php: ^7.3
- ext-dom: *
- erusev/parsedown: ^1.7
- ezsystems/ezplatform-admin-ui: ^4.0
- ezsystems/ezplatform-kernel: ^4.0
- ezsystems/ezplatform-rest: ^4.0
- ezsystems/ezplatform-richtext: ^4.0
- lexik/jwt-authentication-bundle: ^2.8
- overblog/graphql-bundle: ^0.12
- symfony/config: ^5.0
- symfony/console: ^5.0
- symfony/dependency-injection: ^5.0
- symfony/filesystem: ^5.0
- symfony/http-foundation: ^5.0
- symfony/http-kernel: ^5.0
- symfony/serializer: ^5.0
- symfony/yaml: ^5.0
Requires (Dev)
- ezsystems/doctrine-dbal-schema: ^4.0
- ezsystems/ezplatform-code-style: ^0.1.0
- ezsystems/ezplatform-content-forms: ^4.0
- ezsystems/ezplatform-design-engine: ^4.0
- ezsystems/ezplatform-http-cache: ^4.0
- ezsystems/ezplatform-search: ^4.0
- ezsystems/ezplatform-user: ^4.0
- friendsofphp/php-cs-fixer: ^2.16.0
- mikey179/vfsstream: ^1.6
- overblog/graphiql-bundle: ^0.2
- phpspec/phpspec: ^6.1
Replaces
- bdunogier/ezplatform-graphql-bundle: v4.0.0-alpha2
- v4.0.0-alpha2
- v4.0.0-alpha1
- 3.0.x-dev
- 2.3.x-dev
- v2.3.17
- v2.3.16
- v2.3.15
- v2.3.14
- v2.3.13
- v2.3.12
- v2.3.11
- v2.3.10
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3.1
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.3.0-rc2
- v2.3.0-rc1
- v2.3.0-beta1
- 2.2.x-dev
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.2.0-rc1
- v2.2.0-beta1
- 2.1.x-dev
- v2.1.1
- v2.1.0
- v2.1.0-rc1
- v2.1.0-beta1
- 2.0.x-dev
- v2.0.1
- v2.0.0
- v2.0.0-rc1
- v2.0.0-beta5
- v2.0.0-beta4
- v2.0.0-beta3
- v2.0.0-beta2
- v2.0.0-beta1
- 1.0.x-dev
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.6-rc1
- v1.0.5
- v1.0.4-rc1
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v1.0.0-rc3
- v1.0.0-rc2
- v1.0.0-rc1
- v0.4.0-beta3
- v0.4.0-beta2
- v0.4.0-beta1
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- dev-IBX-7603_missing_text_field_from_url
- dev-compiled_schema_sync_2.3
- dev-doc_content_mapping
- dev-snapshot-master
- dev-configurable_schema_location
- dev-multilingual_fields
- dev-ezp30351-viewer_field
- dev-deprecate_id_argument
- dev-ezp32182-item_parent
- dev-ezp32182-enhanced_location_handling
- dev-better_location_handling
- dev-aggs_support
- dev-types_at_root_level
- dev-feature-my
- dev-use_thumbnail_api
- dev-ungenerated_schema
- dev-api-thumbnails
- dev-menu
- dev-repoforms
- dev-field_definition_input_mapper-2.0
- dev-graphql_bundle_v012
- dev-natural_filtering
- dev-feature-ezp30726-location_children-3.0
- dev-install-latest-dependencies
- dev-dev
- dev-behat
- dev-totalCount
- dev-fix_yaml_loader
- dev-namespace
This package is auto-updated.
Last update: 2025-07-01 12:03:42 UTC
README
This Symfony bundle adds a GraphQL server to eZ Platform, the Open Source CMS.
The schema: /graphql
https://<host>/graphql
It first and foremost exposes the domain modelled using the repository, based on content types groups, content types and fields definitions. Use it to implement apps or sites dedicated to a given repository structure.
Example: an eZ Platform site.
Warning: this feature requires specific setup steps. See the Domain Schema documentation.
In addition to the schema based on the content model, the repository's Public API is also available under _repository
.
It exposes content, location, field, url alias...
It is recommended for admin like applications, not limited to a particular repository.
Example: an eZ Platform Admin UI extension.
Repository schema documentation
Installation
Install the package and its dependencies using composer:
composer require ezsystems/ezplatform-graphql
Add the bundles to app/AppKernel.php
(pay attention to the order, it is important):
$bundles = array( // ... new EzSystems\EzPlatformGraphQL\EzSystemsEzPlatformGraphQLBundle(), new Overblog\GraphQLBundle\OverblogGraphQLBundle(), new AppBundle\AppBundle(), );
Add the GraphQL routing configuration to app/config/routing.yml
:
overblog_graphql: resource: "@OverblogGraphQLBundle/Resources/config/routing/graphql.yml" overblog_graphql_endpoint: path: /graphql defaults: _controller: Overblog\GraphQLBundle\Controller\GraphController::endpointAction _format: "json"
Generate your schema
Run the command that generates the GraphQL schema:
php bin/console ezplatform:graphql:generate-schema
php bin/console cache:clear
It will generate a lot of yaml files in app/config/graphql/ezplatform
, based on your content types.
GraphiQL
The graphical graphQL client, GraphiQL, must be installed separately if you want to use it. As a developer, you probably want to.
composer require --dev overblog/graphiql-bundle
Add OverblogGraphiQLBundle
to the dev
bundles:
case 'dev': // ... $bundles[] = new Overblog\GraphiQLBundle\OverblogGraphiQLBundle();
Add the GraphiQL route to app/config/routing_dev.yml
:
overblog_graphql_graphiql: resource: "@OverblogGraphiQLBundle/Resources/config/routing.xml"
Open http://<yourhost>/graphiql
.