oscar-team/elena-php

Elena API integration with php

v1.0.6 2024-01-29 11:12 UTC

This package is auto-updated.

Last update: 2024-04-29 12:00:40 UTC


README

This is a PHP library for integrating Elena api

Installation

Use the package manager composer to install.

composer require oscar-team/elena-php

Usage

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

Contributing

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.

License

MIT