Skip to content

Commit 28dc819

Browse files
author
Pascal de Vink
committed
First version of GraphQL federation support in PHP
This first version is based on the excellent webonyx/graphql-php and extends it with the federation spec as provided by Apollo (see https://www.apollographql.com/docs/apollo-server/federation/federation-spec/)
1 parent e65d34c commit 28dc819

10 files changed

+2211
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
vendor/
2+
build/
3+
.phpunit.result.cache

.travis.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: php
2+
sudo: false
3+
4+
php:
5+
- '7.3'
6+
- nightly
7+
8+
## Build matrix for lowest and highest possible targets
9+
matrix:
10+
include:
11+
- php: 7.3
12+
env: dependencies=lowest
13+
- php: nightly
14+
env: dependencies=lowest
15+
- php: 7.3
16+
env: dependencies=highest
17+
- php: nightly
18+
env: dependencies=highest
19+
20+
## Update composer and run the appropriate composer command
21+
before_script:
22+
- composer self-update -q
23+
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
24+
- if [ -z "$dependencies" ]; then composer install; fi;
25+
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest -n; fi;
26+
- if [ "$dependencies" = "highest" ]; then composer update -n; fi;
27+
- composer show -i

README

Whitespace-only changes.

composer.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "pascaldevink/graphql-federation",
3+
"description": "Utility for creating GraphQL microservices, which can be combined into a single endpoint through tools like Apollo Gateway",
4+
"keywords": ["graphql", "federation", "apollo"],
5+
"type": "library",
6+
"license": "MIT",
7+
"authors": [
8+
{
9+
"name": "Pascal de vink",
10+
"email": "[email protected]"
11+
}
12+
],
13+
"autoload": {
14+
"psr-4": {
15+
"PascalDeVink\\GraphQLFederation\\": "src/"
16+
}
17+
},
18+
"autoload-dev": {
19+
"psr-4": {
20+
"PascalDeVink\\GraphQLFederation\\Test\\": "tests/"
21+
}
22+
},
23+
"require": {
24+
"php": "^7.3",
25+
"webonyx/graphql-php": "^0.13.8"
26+
},
27+
"require-dev": {
28+
"phpunit/phpunit": "^8.4"
29+
}
30+
}

0 commit comments

Comments
 (0)