PHP code example of jawira / irisbox-sdk
1. Go to this page and download the library: Download jawira/irisbox-sdk 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/ */
jawira / irisbox-sdk example snippets
\Jawira\IrisboxSdk\DemandService::STAGING
\Jawira\IrisboxSdk\DemandService::PRODUCTION
\Jawira\IrisboxSdk\DocumentService::STAGING
\Jawira\IrisboxSdk\DocumentService::PRODUCTION
use Jawira\IrisboxSdk\DemandModel\FormDetails;
use Jawira\IrisboxSdk\DemandModel\GetDemandsBetweenDatesRequest;
use Jawira\IrisboxSdk\DemandService;
// 1. Instantiate service
$demandService = new DemandService('my-username', 'my-password', DemandService::STAGING);
// 2. Prepare DTOs
$form = new FormDetails();
$form->formName = 'MY_FORM';
$form->applicationName = 'MY_APPLICATION';
$request = new GetDemandsBetweenDatesRequest();
$request->form = $form;
$request->startDate = '2025-01-01';
$request->endDate = '2025-06-27';
$request->version = 0;
$request->pageNumber = 0;
// 3. Send request
$response = $demandService->getDemandsBetweenDates($request);
// 4. Print IDs from response
foreach ($response->irisboxDemands as $demand) {
echo $demand->uniqueKey;
}