PHP code example of oscar-team / elena-php
1. Go to this page and download the library: Download oscar-team/elena-php 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/ */
oscar-team / elena-php example snippets
$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
bash
composer