Skip to content

Instantly share code, notes, and snippets.

Avatar

Shawn Maddock smaddock

View GitHub Profile
@dunglas
dunglas / example.php
Created Apr 19, 2018
A minimalist GraphQL client for PHP
View example.php
<?php
$query = <<<'GRAPHQL'
query GetUser($user: String!) {
user (login: $user) {
name
email
repositoriesContributedTo {
totalCount
}