{"id":18929473,"url":"https://github.com/thecodingmachine/graphqlite-bundle","last_synced_at":"2026-01-02T17:20:11.161Z","repository":{"id":34066378,"uuid":"168178592","full_name":"thecodingmachine/graphqlite-bundle","owner":"thecodingmachine","description":"A Symfony bundle for thecodingmachine/graphqlite. ","archived":false,"fork":false,"pushed_at":"2025-04-21T01:14:33.000Z","size":378,"stargazers_count":36,"open_issues_count":6,"forks_count":42,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-15T20:09:17.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-29T15:32:17.000Z","updated_at":"2025-03-24T08:06:19.000Z","dependencies_parsed_at":"2024-02-08T00:30:27.553Z","dependency_job_id":"25826435-8851-462a-a1f9-2171270081c3","html_url":"https://github.com/thecodingmachine/graphqlite-bundle","commit_stats":{"total_commits":244,"total_committers":24,"mean_commits":"10.166666666666666","dds":0.4877049180327869,"last_synced_commit":"f02ce0fb26a7fdb4e74cd77bb85a4028cdb8d1a6"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgraphqlite-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgraphqlite-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgraphqlite-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgraphqlite-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/graphqlite-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493378,"owners_count":22080126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:32:55.565Z","updated_at":"2026-01-02T17:20:11.147Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/thecodingmachine/graphqlite-bundle/v/stable)](https://packagist.org/packages/thecodingmachine/graphqlite-bundle)\n[![License](https://poser.pugx.org/thecodingmachine/graphqlite-bundle/license)](https://packagist.org/packages/thecodingmachine/graphqlite-bundle)\n[![Build Status](https://github.com/thecodingmachine/graphqlite-bundle/actions/workflows/test.yaml/badge.svg)](https://github.com/thecodingmachine/graphqlite-bundle/actions/workflows/test.yaml/badge.svg)\n\n# GraphQLite bundle\n\nSymfony bundle for the `thecodingmachine/graphqlite` package.\nIt discovers your annotated controllers and types, builds the schema, exposes the `/graphql` endpoint through a PSR-7\nbridge (with optional upload handling), and keeps the Symfony request available as the GraphQL context.\n\nPart of the bundle docs: https://graphqlite.thecodingmachine.io/docs/symfony-bundle\n\nSee [thecodingmachine/graphqlite](https://github.com/thecodingmachine/graphqlite).\n\n## Requirements\n\n- PHP 8.1+\n- Supports:\n  - Symfony 6.4/7.0/8.0\n  - GraphQLite ^8\n\n## Installation\n\n```bash\ncomposer require thecodingmachine/graphqlite-bundle\n```\n\nEnsure the bundle is enabled (Symfony Flex does this automatically via `config/bundles.php` after `composer require`).\n\n### Configure routes\n\nImport the bundle routes to expose `/graphql`:\n\n```yaml\n# config/routes/graphqlite.yaml\ngraphqlite_bundle:\n  resource: '@GraphQLiteBundle/Resources/config/routes.php'\n```\n\n### Configure namespaces\n\nTell GraphQLite where to look for controllers and types:\n\n```yaml\n# config/packages/graphqlite.yaml\ngraphqlite:\n  namespace:\n    controllers: App\\\\GraphQL\\\\Controller\n    types:\n      - App\\\\GraphQL\\\\Type\n      - App\\\\Entity\n```\n\n## Quickstart\n\nCreate a controller with GraphQLite attributes:\n\n```php\n\u003c?php\n// src/GraphQL/Controller/HelloController.php\nnamespace App\\GraphQL\\Controller;\n\nuse TheCodingMachine\\GraphQLite\\Annotations\\Query;\n\nfinal class HelloController\n{\n    #[Query]\n    public function hello(string $name = 'world'): string\n    {\n        return sprintf('Hello %s', $name);\n    }\n}\n```\n\n## Features\n\n- Auto-discovers controllers and types from configured namespaces and registers GraphQLite services, query providers,\n  type mappers, and middleware through Symfony autoconfiguration\n- Ships a `/graphql` route that converts Symfony requests to PSR-7 and keeps the Symfony request in the GraphQL context\n- Passes the Symfony request as context to allow using them in queries/mutations\n- Supports multipart uploads when `graphql-upload` is installed\n- Integrates with Symfony Security for `#[Logged]`/`#[Right]` checks\n- Expose `login`/`logout` mutations plus a `me` query (opt-out)\n- Symfony Validator-based user input validation\n- Lets you cap introspection, query depth, and query complexity via configuration\n- Uses Symfony cache (APCu or PHP files) for schema caching\n- Includes a `graphqlite:dump-schema` console command to export GraphQL SDL\n\n## GraphiQL (playground)\n\nThe bundle wires Overblog’s GraphiQL bundle if it is installed. See https://github.com/overblog/GraphiQLBundle for\nenabling the UI alongside the `/graphql` endpoint.\n\n## Development\n\n- Tests: `vendor/bin/phpunit`\n- Static analysis: `composer phpstan`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fgraphqlite-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fgraphqlite-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fgraphqlite-bundle/lists"}