thecodingmachine / graphqlite-bundle
A Symfony bundle for thecodingmachine/graphqlite.
Package info
github.com/thecodingmachine/graphqlite-bundle
Type:symfony-bundle
pkg:composer/thecodingmachine/graphqlite-bundle
Requires
- php: >=8.1
- ext-json: *
- laminas/laminas-diactoros: ^2.2.2 || ^3
- nyholm/psr7: ^1.1
- symfony/config: ^6.4 || ^7.0 || ^8.0
- symfony/console: ^6.4 || ^7.0 || ^8.0
- symfony/framework-bundle: ^6.4 || ^7.0 || ^8.0
- symfony/psr-http-message-bridge: ^2.0 || ^7.0 || ^8.0
- symfony/translation: ^6.4 || ^7.0 || ^8.0
- symfony/validator: ^6.4 || ^7.0 || ^8.0
- thecodingmachine/cache-utils: ^1
- thecodingmachine/graphqlite: ^8.1
- thecodingmachine/graphqlite-symfony-validator-bridge: ^7.1.1
Requires (Dev)
- beberlei/porpaginas: ^1.2 || ^2.0
- composer/package-versions-deprecated: ^1.8
- composer/semver: ^3.4
- overblog/graphiql-bundle: ^0.2 || ^0.3 || ^1
- phpstan/phpstan: ^2
- phpstan/phpstan-symfony: ^2.0
- symfony/phpunit-bridge: ^6.4.35 || ^7 || ^8.0
- symfony/security-bundle: ^6.4 || ^7.0 || ^8.0
- symfony/yaml: ^6.4 || ^7.0 || ^8.0
Suggests
- ecodev/graphql-upload: If you want to support file upload inside GraphQL input types (v7/v8)
- overblog/graphiql-bundle: Install to enable the GraphiQL UI (e.g. /graphiql).
- symfony/security-bundle: To use #[Logged] or #[Right] attributes
Provides
None
Conflicts
- symfony/password-hasher: <6.4
Replaces
None
- dev-master / 7.x-dev
- v7.7.0
- v7.6.0
- v7.5.0
- v7.4.0
- v7.3.0
- v7.2.0
- v7.1.2
- v7.1.1
- v7.1.0
- v7.0.0
- 6.x-dev
- v6.2.0
- v6.1.1
- v6.1.0
- 6.0.x-dev
- v6.0.3
- v6.0.2
- v6.0.1
- v6.0.0
- v6.0.0-beta.0
- v5.4.0
- v5.0.0
- v4.1.4
- v4.1.3
- v4.1.2
- v4.1.1
- v4.1.0
- 4.0.x-dev
- v4.0.8
- v4.0.7
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.0.0
- dev-revert-119-master
This package is auto-updated.
Last update: 2026-10-30 23:16:40 UTC
README
GraphQLite bundle
Symfony bundle for GraphQLite: build a GraphQL API by adding PHP attributes
(#[Query], #[Mutation], #[Type], #[Field]...) to your classes. The bundle exposes the /graphql endpoint and
integrates GraphQLite with Symfony services, Security, Validator, file uploads and cache.
Documentation: docs/index.rst
Requirements
- PHP 8.1+
- Symfony 6.4, 7.x or 8.x
- GraphQLite ^8
Quick start
-
Install the bundle (Symfony Flex enables it and creates its configuration):
composer require thecodingmachine/graphqlite-bundle
-
Tell GraphQLite where your GraphQL classes live:
# config/packages/graphqlite.yaml graphqlite: namespace: controllers: App\GraphQL\Controller\ types: - App\Entity\ - App\GraphQL\Input\
-
Write your first query and call
/graphql:// src/GraphQL/Controller/HelloController.php namespace App\GraphQL\Controller; use TheCodingMachine\GraphQLite\Annotations\Query; class HelloController { #[Query] public function hello(string $name = 'world'): string { return sprintf('Hello %s', $name); } }
Continue with the getting started tutorial.
Development
- Tests:
vendor/bin/simple-phpunit - Static analysis:
composer phpstan - The code examples of
docs/are tested: they must stay identical to the classes oftests/DocsFixtures/(seetests/DocsExamplesTest.php).