PHP code example of erwane / openagenda-wrapper-guzzle
1. Go to this page and download the library: Download erwane/openagenda-wrapper-guzzle 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-wrapper-guzzle example snippets
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 he' => $cache, // Optional
'defaultLang' => 'fr', // Optional
]);