{"id":16272564,"url":"https://github.com/ncrypthic/doctrine-graphql","last_synced_at":"2025-03-19T23:31:06.106Z","repository":{"id":57024387,"uuid":"188708502","full_name":"ncrypthic/doctrine-graphql","owner":"ncrypthic","description":"Doctrine ORM to GraphQL bridge","archived":false,"fork":false,"pushed_at":"2020-07-11T10:34:08.000Z","size":68,"stargazers_count":2,"open_issues_count":5,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T21:48:25.893Z","etag":null,"topics":["doctrine-orm","graphql","php7"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ncrypthic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-26T16:45:48.000Z","updated_at":"2021-10-09T22:11:19.000Z","dependencies_parsed_at":"2022-08-23T13:51:03.382Z","dependency_job_id":null,"html_url":"https://github.com/ncrypthic/doctrine-graphql","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrypthic%2Fdoctrine-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrypthic%2Fdoctrine-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrypthic%2Fdoctrine-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncrypthic%2Fdoctrine-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncrypthic","download_url":"https://codeload.github.com/ncrypthic/doctrine-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031029,"owners_count":20386534,"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":["doctrine-orm","graphql","php7"],"created_at":"2024-10-10T18:18:14.901Z","updated_at":"2025-03-19T23:31:05.731Z","avatar_url":"https://github.com/ncrypthic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# doctrine-graphql\n[![Build Status](https://travis-ci.com/ncrypthic/doctrine-graphql.svg?branch=master)](https://travis-ci.com/ncrypthic/doctrine-graphql)\n[![Documentation Status](https://readthedocs.org/projects/doctrine-graphql/badge/?version=latest)](https://doctrine-graphql.readthedocs.io/en/latest/?badge=latest)\n\n[Doctrine ORM](https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/) to [PHP GraphQL](https://webonyx.github.io/graphql-php/) bridge. \n\n## How it works\n\nThis library provides a [DoctrineGraphQL](https://github.com/ncrypthic/doctrine-graphql/blob/master/src/DoctrineGraphQL.php) builder class to build all Doctrine entities as GraphQL types by following a [naming convention](docs/types.md#naming-conventions).\n\nFor every entity class mapped to GraphQL object type it will create basic GraphQL Query and Mutations.\n\n## Installation\n\n```\ncomposer require ncrypthic/doctrine-graphql\n```\n\n## Usage\n\n```php\nuse LLA\\DoctrineGraphQL\\DoctrineGraphQL;\nuse GraphQL\\Server\\Helper;\nuse GraphQL\\Server\\ServerConfig;\n\n/* @var EntityManager $em */\n// Get Doctrine's entity manager\n\n$builder = new DoctrineGraphQL();\n$builder\n    -\u003ebuildTypes($em)\n    -\u003ebuildQueries($em)\n    -\u003ebuildMutations($em);\n    \n$schema = $builder-\u003etoGraphQLSchema();\n$config = ServerConfig::create(['schema'=\u003e$schema]);\n\n$helper = new Helper();\n$req = $helper-\u003eparseHttpRequest();\n\n$res = is_array($req)\n  ? $helper-\u003eexecuteBatch($config, $req)\n  : $helper-\u003eexecuteOperation($config, $req);\n```\n\n## Queries\n\nSee [Queries](docs/queries.md)\n\n## Mutations\n\nSee [Mutations](docs/mutations.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncrypthic%2Fdoctrine-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncrypthic%2Fdoctrine-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncrypthic%2Fdoctrine-graphql/lists"}