Skip to content

Instantly share code, notes, and snippets.

View smaddock's full-sized avatar

Shawn Maddock smaddock

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