oscar-team / elena-php
Elena API integration with php
Installs: 2 395
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^8.1
- cuyz/valinor: ^1.3
- saloonphp/saloon: ^3.0
Requires (Dev)
- pestphp/pest: ^2.4
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.