PHP code example of sostariffe / php-graphql-client
1. Go to this page and download the library: Download sostariffe/php-graphql-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sostariffe / php-graphql-client example snippets
composer
$results = $client->runQuery($gql);
$results->getData()->Company[0]->branches;
$results = $client->runQuery($gql, true);
$results->getData()['Company'][1]['branches']['address']