{"id":18486100,"url":"https://github.com/mathsgod/gql-client","last_synced_at":"2026-04-27T11:31:42.914Z","repository":{"id":37590650,"uuid":"164816359","full_name":"mathsgod/gql-client","owner":"mathsgod","description":"A simple GraphQL client tools","archived":false,"fork":false,"pushed_at":"2024-03-26T02:41:43.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-04T18:53:46.747Z","etag":null,"topics":["graphql","php"],"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/mathsgod.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":"2019-01-09T07:59:29.000Z","updated_at":"2022-01-25T10:34:09.000Z","dependencies_parsed_at":"2024-11-06T12:52:08.268Z","dependency_job_id":"9bf0af0d-6022-4144-86c8-3761018c4bb8","html_url":"https://github.com/mathsgod/gql-client","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"0a87dba049c2ec0da1992c6a6392ed793ae616d0"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/mathsgod/gql-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fgql-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fgql-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fgql-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fgql-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathsgod","download_url":"https://codeload.github.com/mathsgod/gql-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fgql-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":["graphql","php"],"created_at":"2024-11-06T12:47:50.534Z","updated_at":"2026-04-27T11:31:42.895Z","avatar_url":"https://github.com/mathsgod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gql-client\n\n## Client example\n\n### Query\n\n```php\n$client = new GQL\\Client($server_address);\n\n$data = $client-\u003equery([\n    \"me\" =\u003e [\n        \"first_name\", \n        \"last_name\"\n    ]\n]);\n```\n\n#### With arguments\n```php\n$client = new GQL\\Client($server_address);\n\n$data = $client-\u003equery([\n    \"getUser\" =\u003e [\n        \"__args\"=\u003e[\n            \"id\"=\u003e1\n        ],\n        \"first_name\", \n        \"last_name\",\n        \"findInvoice\"=\u003e[\n            \"__args\"=\u003e[\n                \"status\"=\u003e\"pending\"\n            ],\n            \"invoice_no\"\n        ]\n    ]\n]);\n```\n\n### Mutation and Subscription\n```php\n$data = $client-\u003emutation(\"updateUser\",[\n    \"__args\"=\u003e[\"user_id\"=\u003e1,\"first_name\"=\u003e\"Raymond\"]\n]);\n\n\n$data=$client-\u003esubscription(\"createUser\",[\n    \"__args\"=\u003e[\"first_name\"=\u003e\"raymond\"]\n]);\n\n```\n\n### auth\n```php\n$client = new GQL\\Client($server_address);\n\n$client-\u003eauth=[\"username\",\"password\"];\n\n$data = $client-\u003equery([\n    \"me\" =\u003e [\n        \"first_name\",\n        \"last_name\"\n    ]\n]);\n```\n\n### no ssl check\n```php\n$client = new GQL\\Client($server_address,[\"verify\"=\u003efalse]);\n\n\n$data = $client-\u003equery([\n    \"me\" =\u003e [\n        \"first_name\",\n        \"last_name\"\n    ]\n]);\n```\n\n## Builder\n### Query\n```php\n\necho Builder::Query([\n     \"me\" =\u003e [\n        \"first_name\",\n        \"last_name\"\n    ]\n]);\n\n// query{ me {first_name last_name} }\n```\n\n### Mutation\n```php\n\necho Builder:Mutation(\"updateUser\",[\n    \"__args\"=\u003e[\n        \"user_id\"=\u003e1,\n        \"first_name\"=\u003e\"Raymond\"\n    ]\n]);\n// mutation{ updateUser(user_id:1, first_name:\"Raymond\") }\n```\n\n### Subscription\n```php\n\necho Builder:Mutation(\"createUser\",[\"__args\"=\u003e[\"first_name\"=\u003e\"Raymond\"]]);\n// subscription{ createUser(first_name:\"Raymond\") }\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fgql-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathsgod%2Fgql-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fgql-client/lists"}