erwane / openagenda-wrapper-guzzle
Guzzle wrapper for erwane/openagenda-api package.
2.0.1
2025-01-21 14:25 UTC
Requires
- php: ^8.0
- ext-json: *
- erwane/openagenda-api: ^3.1
- guzzlehttp/guzzle: ^v6.0 | ^v7.0
Requires (Dev)
- cakephp/cakephp-codesniffer: ^4.0
- phpunit/phpunit: ^9.6 | ^10.5 | ^11.5
- symfony/var-dumper: ^v6.0
README
Guzzle wrapper for erwane/openagenda-api package.
Version map
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 required for reading data (GET) // The private key is optional and only needed for writing data (POST, PUT, DELETE) $oa = new OpenAgenda([ 'public_key' => 'my public key', // Required 'secret_key' => 'my secret key', // Optional, only for create/update/delete 'wrapper' => $wrapper, // Required 'cache' => $cache, // Optional 'defaultLang' => 'fr', // Optional ]);
Check OpenAgenda API lib for details.