{"id":13499316,"url":"https://github.com/thecodingmachine/graphqlite","last_synced_at":"2025-05-14T01:05:03.017Z","repository":{"id":34066267,"uuid":"168156496","full_name":"thecodingmachine/graphqlite","owner":"thecodingmachine","description":"Use PHP Attributes/Annotations to declare your GraphQL API","archived":false,"fork":false,"pushed_at":"2025-03-26T03:59:02.000Z","size":102450,"stargazers_count":558,"open_issues_count":30,"forks_count":101,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-05T22:01:48.500Z","etag":null,"topics":["annotations","graphql","laravel","php","symfony"],"latest_commit_sha":null,"homepage":"https://graphqlite.thecodingmachine.io","language":"MDX","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/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","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-29T13:09:22.000Z","updated_at":"2025-03-26T16:07:03.000Z","dependencies_parsed_at":"2023-11-30T01:26:57.233Z","dependency_job_id":"eb717d85-1a93-4b59-bdc7-a389294bc348","html_url":"https://github.com/thecodingmachine/graphqlite","commit_stats":{"total_commits":958,"total_committers":58,"mean_commits":"16.517241379310345","dds":"0.37056367432150317","last_synced_commit":"04d592f4213c1e9d76c72028276800565ce8f2e9"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgraphqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgraphqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgraphqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fgraphqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/graphqlite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248645821,"owners_count":21138885,"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":["annotations","graphql","laravel","php","symfony"],"created_at":"2024-07-31T22:00:32.148Z","updated_at":"2025-04-12T23:27:02.728Z","avatar_url":"https://github.com/thecodingmachine.png","language":"MDX","readme":"\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://graphqlite.thecodingmachine.io/img/logo.svg\" alt=\"GraphQLite logo\" width=\"250\" height=\"250\" /\u003e\n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003eGraphQLite\u003c/h3\u003e\n\u003cp align=\"center\"\u003eGraphQL in PHP made easy.\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://graphqlite.thecodingmachine.io\"\u003eDocumentation\u003c/a\u003e \u0026#183; \u003ca href=\"/.github/CONTRIBUTING.md\"\u003eContributing\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/thecodingmachine/graphqlite\" title=\"Latest Stable Version\"\u003e\n        \u003cimg src=\"https://poser.pugx.org/thecodingmachine/graphqlite/v/stable\" alt=\"Latest Stable Version\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/thecodingmachine/graphqlite\" title=\"Total Downloads\"\u003e\n        \u003cimg src=\"https://poser.pugx.org/thecodingmachine/graphqlite/downloads\" alt=\"Total Downloads\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/thecodingmachine/graphqlite\" title=\"License\"\u003e\n        \u003cimg src=\"https://poser.pugx.org/thecodingmachine/graphqlite/license\" alt=\"License\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/thecodingmachine/graphqlite/actions\" title=\"Continuous Integration\"\u003e\n        \u003cimg src=\"https://github.com/thecodingmachine/graphqlite/workflows/Continuous%20Integration/badge.svg\" alt=\"Continuous Integration\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/thecodingmachine/graphqlite\" title=\"Code Coverage\"\u003e\n        \u003cimg src=\"https://codecov.io/gh/thecodingmachine/graphqlite/branch/master/graph/badge.svg\" alt=\"Code Coverage\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nA GraphQL library for PHP that allows you to use attributes (or annotations) to define your schema and write your queries and mutations using simple-to-write controllers.\n\n## Features\n\n* Create a complete GraphQL API by simply annotating your PHP classes\n* Framework agnostic, but with [Symfony](https://github.com/thecodingmachine/graphqlite-bundle) and [Laravel](https://github.com/thecodingmachine/graphqlite-laravel) integrations available!\n* Comes with batteries included :battery:: queries, mutations, subscriptions, mapping of arrays/iterators, file uploads, extendable types and more!\n\n## Basic example\n\nFirst, declare a mutation in your controller:\n\n```php\nclass ProductController\n{\n    #[Mutation]\n    public function updateProduct(Product $product): Product\n    {\n        // Some code that gets and updates a Product\n        return $product;\n    }\n}\n```\n\nThen, annotate the `Product` class to declare what fields are exposed to the GraphQL API:\n\n```php\n#[Type]\n#[Input(update: true)]\nclass Product\n{\n    #[Field]\n    public function getName(): string\n    {\n        return $this-\u003ename;\n    }\n    \n    #[Field]\n    public function setName(string $name): void\n    {\n        $this-\u003ename = $name;\n    }\n    \n    // ...\n}\n```\n\nThat's it, you're good to go :tada: mutate away!\n\n```graphql\n{\n  updateProduct(product: {\n    name: 'John Doe'\n  }) {\n    name\n  }\n}\n```\n\nWant to learn more? Head to the [documentation](https://graphqlite.thecodingmachine.io/)!\n\n## Contributing\n\nContributions are welcomed via pull requests.  If you'd like to discuss prior to submitting a PR, consider a [discussion](https://github.com/thecodingmachine/graphqlite/discussions).  If it's a bug/issue, you can [submit an issue](https://github.com/thecodingmachine/graphqlite/issues) first.\n\nAll PRs should have sufficient test coverage for any additions or changes.  PRs will not be merged without these.\n","funding_links":[],"categories":["Libraries","PHP","Implementations"],"sub_categories":["PHP Libraries","PHP"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fgraphqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fgraphqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fgraphqlite/lists"}