1. Go to this page and download the library: Download regalii/regaliator 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/ */
regalii / regaliator example snippets
$configuration = new Regaliator\Configuration([
'version' => '3.1',
'api_host' => 'api.casiregalii.com',
'api_key' => getenv('REGALII_API_KEY'),
'secret_key' => getenv('REGALII_SECRET')
]);
$regaliator = new Regaliator\Regaliator($configuration);
$response = $regaliator->account();
if ($response->success) {
$data = json_decode($response->body, true);
} else {
echo "Failed with status code {$response->status_code}";
}