libriciel/lshorodatage-api-wrapper

Wrapper service lshorodatage

1.0.3 2021-02-15 09:22 UTC

This package is not auto-updated.

Last update: 2024-05-07 03:12:27 UTC


README

Wrapper php de l'api de lshorodatage.

Prérequis

php >= 7.2

Installation

composer require libriciel/lshorodatage-api-wrapper

Initialisation


$lshorodatage = new Lshorodatage();
$lshorodatage->setUrl("http://lshorodatage:3000");

Verification de la connexion

$lshorodatage->ping();

Générer le token de timestamp d'un fichier

$lshorodatage->createTimestampToken("FILE/PATH");

Lire un token

$lshorodatage->readTimestampToken("FILE_TOKEN/PATH");

Vérifier la validité du token pour un fichier

$lshorodatage->verifyTimestampToken("FILE/PATH", "FILE_TOKEN/PATH");

Générer un timestamp via un service rgs

$lshorodatage->createRgsTimestampToken("FILE/PATH");