1. Go to this page and download the library: Download erwane/openagenda-api 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/ */
erwane / openagenda-api example snippets
composer
composer
use OpenAgenda\OpenAgenda;
use OpenAgenda\Wrapper\GuzzleWrapper
// PSR-18 Http client.
$guzzleOptions = ['timeout' => 2.0];
$wrapper = new GuzzleWrapper($guzzleOptions);
// PSR-16 Simple cache. Optional
$cache = new Psr16Cache();
// Create the OpenAgenda client. The public key is e' => $cache, // Optional
'defaultLang' => 'fr', // Optional
]);