{"id":17989522,"url":"https://github.com/evilfreelancer/simplegqlient","last_synced_at":"2026-04-17T01:02:10.339Z","repository":{"id":62482277,"uuid":"560725541","full_name":"EvilFreelancer/simplegqlient","owner":"EvilFreelancer","description":"The simplest GraphQL client written in PHP","archived":false,"fork":false,"pushed_at":"2023-10-19T10:16:21.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T01:43:06.222Z","etag":null,"topics":["api-client","graphql","graphql-client"],"latest_commit_sha":null,"homepage":"","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/EvilFreelancer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-02T05:53:32.000Z","updated_at":"2023-01-25T10:17:20.000Z","dependencies_parsed_at":"2024-10-29T19:44:51.464Z","dependency_job_id":null,"html_url":"https://github.com/EvilFreelancer/simplegqlient","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/EvilFreelancer/simplegqlient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fsimplegqlient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fsimplegqlient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fsimplegqlient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fsimplegqlient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvilFreelancer","download_url":"https://codeload.github.com/EvilFreelancer/simplegqlient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Fsimplegqlient/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271989819,"owners_count":24854702,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api-client","graphql","graphql-client"],"created_at":"2024-10-29T19:14:52.627Z","updated_at":"2026-04-17T01:02:10.124Z","avatar_url":"https://github.com/EvilFreelancer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleGQLient - Simple GraphQL client\n\nThe simplest GraphQL client written in PHP.\nInspired by the [Lighthouse PHP](https://lighthouse-php.com/) project,\nin particular by [embedded client](https://github.com/nuwave/lighthouse/blob/master/src/Testing/MakesGraphQLRequests.php)\nthat can be used for testing of Laravel-based GraphQL\nimplementation of server.\n\n```shell\ncomposer require evilfreelancer/simplegqlient\n```\n\n## Small example\n\n```php\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\n$githubToken = 'xxx';\n\n$client = new \\SimpleGQLient\\Client('https://api.github.com/graphql', [\n    'Authorization' =\u003e 'Bearer ' . $githubToken,\n    'Accept'        =\u003e 'application/vnd.github.hawkgirl-preview+json,',\n]);\n\n$response = $client-\u003egraphQL(/** @lang GraphQL */ '\n{\n  user(login: \"evilfreelancer\") {\n    repositories(ownerAffiliations: OWNER, isFork: false, first: 100) {\n      nodes {\n        name\n        languages(first: 10, orderBy: { field: SIZE, direction: DESC }) {\n          edges {\n            size\n            node {\n              color\n              name\n            }\n          }\n        }\n      }\n    }\n  }\n}\n');\n\n// \\Psr\\Http\\Message\\ResponseInterface in response\n$output = $response-\u003egetBody()-\u003egetContents();\nvar_dump($output);\n```\n\n## Roadmap\n\n- [x] Basic client\n- [ ] Multipart support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilfreelancer%2Fsimplegqlient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilfreelancer%2Fsimplegqlient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilfreelancer%2Fsimplegqlient/lists"}