libriciel/lshorodatage-api-wrapper

lshorodatage包装服务

1.0.3 2021-02-15 09:22 UTC

This package is not auto-updated.

Last update: 2024-09-24 04:50:36 UTC


README

lshorodatage API 的 PHP 包装器。

先决条件

php >= 7.2

安装

composer require libriciel/lshorodatage-api-wrapper

初始化


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

验证连接

$lshorodatage->ping();

生成文件的时间戳令牌

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

读取令牌

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

验证令牌对文件的有效性

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

通过rgs服务生成时间戳

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