1. Go to this page and download the library: Download nishstha/monday-laravel 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/ */
$query = <<<GQL
query{
boards(ids: $boardId){
groups{
id,
title
}
}
}
GQL;
// passing true as the second parameter returns the data object
$response = Monday::call($query,true);
$data = $response->boards->groups;