This is a PHP library for integrating Elena api
Use the package manager composer to install.
composer require oscar-team/elena-php
The API integration built with Saloon
require __DIR__ . '/vendor/autoload.php';
$connector = new \OscarTeam\ElenaPhp\ElenaApi('test');
$connector->withBasicAuth('username', 'password');
$request = new \OscarTeam\ElenaPhp\Requests\GetRegistrations();
$connector->send($request)->dto(); // gives you response as an DTO Objects
//or
$connector->send($request)->json(); // gives uou response as an array
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.