{"id":37366965,"url":"https://github.com/pascaldevink/php-graphql-federation","last_synced_at":"2026-01-16T04:53:18.700Z","repository":{"id":57036140,"uuid":"218541304","full_name":"pascaldevink/php-graphql-federation","owner":"pascaldevink","description":"Utility for creating GraphQL microservices, which can be combined into a single endpoint through tools like Apollo Gateway","archived":false,"fork":false,"pushed_at":"2020-06-09T12:00:15.000Z","size":21,"stargazers_count":19,"open_issues_count":2,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-06T10:21:32.881Z","etag":null,"topics":["apollo","federation","graphql","graphql-federation","graphql-php","php"],"latest_commit_sha":null,"homepage":null,"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/pascaldevink.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}},"created_at":"2019-10-30T14:04:24.000Z","updated_at":"2023-05-19T15:20:14.000Z","dependencies_parsed_at":"2022-08-24T14:11:09.211Z","dependency_job_id":null,"html_url":"https://github.com/pascaldevink/php-graphql-federation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pascaldevink/php-graphql-federation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascaldevink%2Fphp-graphql-federation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascaldevink%2Fphp-graphql-federation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascaldevink%2Fphp-graphql-federation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascaldevink%2Fphp-graphql-federation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pascaldevink","download_url":"https://codeload.github.com/pascaldevink/php-graphql-federation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pascaldevink%2Fphp-graphql-federation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["apollo","federation","graphql","graphql-federation","graphql-php","php"],"created_at":"2026-01-16T04:53:18.549Z","updated_at":"2026-01-16T04:53:18.692Z","avatar_url":"https://github.com/pascaldevink.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL Federation for PHP\n\nUtility for creating GraphQL microservices, which can be combined into a single endpoint through tools like Apollo \nGateway.\n\n[![Build Status](https://travis-ci.org/pascaldevink/php-graphql-federation.svg?branch=master)](https://travis-ci.org/pascaldevink/php-graphql-federation)\n\n## Installation\n\nUse the package manager [composer](https://getcomposer.org) to install graphql-federation.\n\n```bash\ncomposer require pascaldevink/graphql-federation\n```\n\n## Usage\n\nAssuming you already have an existing GraphQL implementation using [webonyx/graphql-php](https://github.com/webonyx/graphql-php), \nthese commands add federation:\n\n```php\n# First, build your existing schema\n$existingSchema = BuildSchema::build(file_get_contents(__DIR__ . '/schema.graphqls'));\n\n# Then, extend it with Federation\n$federation = new \\PascalDeVink\\GraphQLFederation\\Federation();\n$schema = $federation-\u003eextendSchema($existingSchema);\n\n# Build your root value resolver\n$rootValue = include __DIR__ . '/rootvalue.php';\n\n# And extend it with Federation resolvers\n$rootValue = $federation-\u003eaddResolversToRootValue($rootValue);\n\n# Finally, execute the query\nGraphQL::executeQuery($schema, $query, $rootValue, null, $variableValues);\n```\n\nSee [the example of webonyx/graphql-php](https://github.com/webonyx/graphql-php/tree/master/examples/02-shorthand)\nfor the rest of the code to make it work.\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascaldevink%2Fphp-graphql-federation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpascaldevink%2Fphp-graphql-federation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpascaldevink%2Fphp-graphql-federation/lists"}