jawira/irisbox-sdk

Download demands and documents from Irisbox.

Installs: 97

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/jawira/irisbox-sdk

v1.3.0 2026-02-09 13:36 UTC

This package is auto-updated.

Last update: 2026-02-09 13:42:12 UTC


README

Packagist Dependency Version Packagist Version Packagist License Packagist Downloads

This library provides two services to download data and files from IRISbox e-administration.

  1. \Jawira\IrisboxSdk\DemandService - to search and get demand data.
    • getDemandsBetweenDates()
    • getDemand()
    • getDemandsByStatus()
    • getFormXsd()
    • setDemandInternalReference()
    • setDemandStatus()
  2. \Jawira\IrisboxSdk\DocumentService - to download attachments.
    • getAttachments()
    • getDemandPdf()
    • setDemandStatusWithAttachments()

Staging and Production WSDL are provided as constants:

\Jawira\IrisboxSdk\DemandService::STAGING
\Jawira\IrisboxSdk\DemandService::PRODUCTION
\Jawira\IrisboxSdk\DocumentService::STAGING
\Jawira\IrisboxSdk\DocumentService::PRODUCTION

Usage

Search all demands between two dates:

<?php

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;
}

How to install

composer require jawira/irisbox-sdk

Contributing

  • Please report any bug.
  • If you liked this project, ⭐ star it on GitHub. GitHub Repo stars
  • Or follow me on 𝕏. Twitter Follow

License

This library is licensed under the MIT license.

Packages from jawira

jawira/doctrine-diagram-bundle GitHub stars
Symfony Bundle to generate database diagrams.
more...