{"id":14976077,"url":"https://github.com/basemax/firstphpgraphql","last_synced_at":"2026-02-10T02:05:55.256Z","repository":{"id":151535347,"uuid":"376754425","full_name":"BaseMax/FirstPHPGraphQL","owner":"BaseMax","description":"Create a GraphQL server (restful) web service using PHP.","archived":false,"fork":false,"pushed_at":"2021-06-15T10:37:26.000Z","size":160,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-11T02:54:22.484Z","etag":null,"topics":["graphql","graphql-api","graphql-client","graphql-php","graphql-schema","graphql-server","json","php","php-graphql","php-graphql-clinet","php-graphql-payload"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.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":"2021-06-14T08:28:02.000Z","updated_at":"2021-09-14T21:01:56.000Z","dependencies_parsed_at":"2023-07-10T14:00:52.137Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/FirstPHPGraphQL","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":0.3529411764705882,"last_synced_commit":"370302e96fe79cd1eecaed5c4ea98850c49d9d37"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/FirstPHPGraphQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFirstPHPGraphQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFirstPHPGraphQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFirstPHPGraphQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFirstPHPGraphQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/FirstPHPGraphQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FFirstPHPGraphQL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270614621,"owners_count":24616746,"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-15T02:00:12.559Z","response_time":110,"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","graphql-api","graphql-client","graphql-php","graphql-schema","graphql-server","json","php","php-graphql","php-graphql-clinet","php-graphql-payload"],"created_at":"2024-09-24T13:53:15.926Z","updated_at":"2026-02-10T02:05:55.225Z","avatar_url":"https://github.com/BaseMax.png","language":"PHP","readme":"# First PHP GraphQL (Web-service)\n\nGraphQL is a new generation of web services, it's best to maintain a big webservice for multi-platform and projects; In this repository, we design a full-feature **graphql server** using **PHP**.\n\n## GraphQL Shema\n\n```graphql\ntype Query {\n  echo(message: String!): String!\n  sum(x: Int!, y: Int!): Int!\n}\n```\n\n## Using\n\nInstall **composer** and installing required packages:\n\n```\nsudo apt install composer\ncomposer install\n```\n\n```\nphp -S localhost:8080 ./graphql.php\n```\n\nOpen `http://localhost:8080/` at your browser and use.\n\n## Example\n\n#### Input\n\n```graphql\n{\n  echo(message: \"Hello World\")\n  sum(x: 2 y:10)\n  s2:sum(x: 2 y:1)\n  s3:sum(x: 2 y:60)\n  s4:sum(x: 2 y:50)\n  s5:sum(x: 2 y:100)\n}\n```\n\n#### Output\n\n```json\n{\n  \"data\": {\n    \"echo\": \"Welcome, Dear Hello World\",\n    \"sum\": 12,\n    \"s2\": 3,\n    \"s3\": 62,\n    \"s4\": 52,\n    \"s5\": 102\n  }\n}\n```\n\n## GraphQL Playground\n\nInstalling at arch: `yay graphql-playground-electron`\n\n![](demo.png)\n\n© Copyright Max Base, 2021\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Ffirstphpgraphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Ffirstphpgraphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Ffirstphpgraphql/lists"}