PHP code example of gponty / symfony-monday-api-bundle

1. Go to this page and download the library: Download gponty/symfony-monday-api-bundle 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/ */

    

gponty / symfony-monday-api-bundle example snippets


public function __construct(
    readonly MondayApiService $mondayApiService
) {}

$query = '{
    boards(ids: 123456789) {
        id
        name
        groups {
            id
            title
            items_page(limit: 100, page: 1) {
                cursor
                items {
                    id
                    name
                }
            }
        }
    }
}';

$this->mondayApiService->setApiKey('your-api-key-here');
$response = $this->mondayApiService->request($query);