{"id":18486152,"url":"https://github.com/mathsgod/r-graphql","last_synced_at":"2025-05-13T22:13:05.264Z","repository":{"id":56953949,"uuid":"164819255","full_name":"mathsgod/r-graphql","owner":"mathsgod","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-20T09:50:36.000Z","size":268,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T09:03:25.060Z","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/mathsgod.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}},"created_at":"2019-01-09T08:16:56.000Z","updated_at":"2021-06-25T03:16:27.000Z","dependencies_parsed_at":"2022-08-21T08:50:07.929Z","dependency_job_id":null,"html_url":"https://github.com/mathsgod/r-graphql","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fr-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fr-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fr-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathsgod%2Fr-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathsgod","download_url":"https://codeload.github.com/mathsgod/r-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036843,"owners_count":22003654,"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-06T12:48:02.837Z","updated_at":"2025-05-13T22:13:00.256Z","avatar_url":"https://github.com/mathsgod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![PHP Composer](https://github.com/mathsgod/r-graphql/workflows/PHP%20Composer/badge.svg)\n\n# r-graphql\n\n```php\n\ntry {\n    $schema = Schema::Build(file_get_contents(__DIR__ . \"/schema.gql\"), $this-\u003eapp);\n    \n} catch (Exception $e) {\n    return [\"error\" =\u003e [\n        \"message\" =\u003e $e-\u003egetMessage()\n    ]];\n}\n\n$this-\u003erequest-\u003egetBody()-\u003egetContents();\n$input = json_decode($input, true);\n$query = $input['query'];\n$variableValues = $input['variables'];\n\n$schema-\u003edebug=true;//debug mode\n\n$result = $schema-\u003eexecuteQuery($query, $variableValues);\n\n$this-\u003ewrite(json_encode($result));\n\n```\n\n### Scalar function added\n\n\n### JWT\n```php\ntry {\n    $schema = Schema::Build(file_get_contents(__DIR__ . \"/schema.gql\"), $this-\u003eapp);\n    $schema-\u003evalidation($jwt, $key, function ($payload)  {\n        print_r($payload);\n    });\n} catch (Exception $e) {\n    return [\"error\" =\u003e [\n        \"message\" =\u003e $e-\u003egetMessage()\n    ]];\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fr-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathsgod%2Fr-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathsgod%2Fr-graphql/lists"}