Search by

libriciel / iparapheur-v5-api-php

epommateaumreyrollepviver

iparapheur v5.x main core application. The main link between every sub-services, integrating business code logic.

Package info

github.com/libriciel/iparapheur-v5-api-php

Homepage

pkg:composer/libriciel/iparapheur-v5-api-php

Statistics

Installs: 3 937

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 4

0.4.1 2025-08-27 14:27 UTC

This package is not auto-updated.

Last update: 2026-09-18 07:33:19 UTC


README

iparapheur v5.x main core application.

The main link between every sub-services, integrating business code logic.

For more information, please visit https://libriciel.fr.

Installation & Usage

Requirements

PHP 7.2 and later.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Your project is free to choose the http client of your choice Please require packages that will provide http client functionality: https://packagist.org/providers/psr/http-client-implementation https://packagist.org/providers/php-http/async-client-implementation https://packagist.org/providers/psr/http-factory-implementation

As an example:

composer require guzzlehttp/guzzle php-http/guzzle7-adapter http-interop/http-factory-guzzle

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');



// Configure OAuth2 access token for authorization: spring_oauth
$config = Libriciel\IparapheurV5\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Libriciel\IparapheurV5\Client\Api\AdminTrashBinApi(
    // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
    // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
    new GuzzleHttp\Client(),
    $config
);
$tenant_id = 'tenant_id_example'; // string | Tenant id
$folder_id = 'folder_id_example'; // string | Folder id

try {
    $apiInstance->deleteTrashBinFolder($tenant_id, $folder_id);
} catch (Exception $e) {
    echo 'Exception when calling AdminTrashBinApi->deleteTrashBinFolder: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to http://localhost:8080

Class Method HTTP request Description
AdminTrashBinApi deleteTrashBinFolder DELETE /api/standard/v1/admin/tenant/{tenantId}/trash-bin/{folderId} Permanently delete a folder
AdminTrashBinApi downloadTrashBinFolderZip GET /api/standard/v1/admin/tenant/{tenantId}/trash-bin/{folderId}/zip Download a folder as ZIP
AdminTrashBinApi listTrashBinFolders GET /api/standard/v1/admin/tenant/{tenantId}/trash-bin List folders in the trash-bin
DeskApi listUserDesks GET /api/standard/v1/tenant/{tenantId}/desk List desks attached to the current user
FolderApi createFolder POST /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder Create a folder
FolderApi deleteFolder DELETE /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId} Delete folder
FolderApi downloadFolderPremis GET /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/premis Get a PREMIS-formatted file, containing the folder summary
FolderApi downloadFolderZip GET /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/zip Get every file as ZIP, with a PREMIS-formatted summary
FolderApi listFolders GET /api/standard/v1/tenant/{tenantId}/desk/{deskId}/{state} List folders in the given state
SecureMailApi requestSecureMail PUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/secure_mail Secure mail
TenantApi listTenants GET /api/standard/v1/tenant List tenants attached with the current user
TypologyApi listCreationAllowedSubtypes GET /api/standard/v1/tenant/{tenantId}/desk/{deskId}/types/{typeId}/subtypes/creation-allowed List creation-allowed subtypes from a given type, for the given desk
TypologyApi listCreationAllowedTypes GET /api/standard/v1/tenant/{tenantId}/desk/{deskId}/types/creation-allowed List types parent to a creation-allowed subtype on the given desk
TypologyApi listSubtypes GET /api/standard/v1/tenant/{tenantId}/types/{typeId}/subtypes List all subtypes of a specific type on the current tenant
TypologyApi listTypes GET /api/standard/v1/tenant/{tenantId}/types List all types on the current tenant
WorkflowApi bypass PUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/bypass Bypass
WorkflowApi seal PUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/seal Seal
WorkflowApi secondOpinion PUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/second_opinion Second opinion
WorkflowApi sendToTrashBin PUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/send_to_trash_bin Send to trash-bin
WorkflowApi start PUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/start Start
WorkflowApi undo PUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/undo Undo
WorkflowApi visa PUT /api/standard/v1/tenant/{tenantId}/desk/{deskId}/folder/{folderId}/task/{taskId}/visa Visa

Models

Authorization

spring_oauth

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: ./auth/realms/api/protocol/openid-connect/auth
  • Scopes: N/A

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

iparapheur@libriciel.coop

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: DEVELOP
    • Generator version: 7.14.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen