PHP code example of nishstha / monday-laravel

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/ */

    

nishstha / monday-laravel example snippets


return [
  'api_url' => env('MONDAY_API_URL', 'https://api.monday.com/v2'),
  'api_key' => env('MONDAY_API_KEY', 'your_key_here'),
];

use Nishstha\Monday\Facades\Monday;

$response = Monday::call($query);

$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;
bash
php artisan vendor:publish --provider="Nishstha\Monday\MondayServiceProvider"