PHP code example of andrew1601 / laravel-arbor
1. Go to this page and download the library: Download andrew1601/laravel-arbor 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/ */
andrew1601 / laravel-arbor example snippets
$query = <<<GQL
query {
Student(currentlyEnrolled: true) {
id
displayName
}
}
GQL;
$response = ArborGraphQL::query($query);
if ($response->hasErrors()) {
// handle errors here
} else {
$data = $response->getData();
}