PHP code example of erwane / openagenda-wrapper-cakephp

1. Go to this page and download the library: Download erwane/openagenda-wrapper-cakephp 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-cakephp example snippets


composer 

use Cake\Cache\Cache;
use OpenAgenda\OpenAgenda;
use OpenAgenda\Wrapper\CakeWrapper

// PSR-18 Http client.
$wrapper = new CakeWrapper($guzzleOptions);

// PSR-16 Simple cache. Optional
$cache = Cache::pool('default');

// Create the OpenAgenda client. The public key is ired
    'cache' => $cache, // Optional
    'defaultLang' => 'fr', // Optional
]);