libriciel/vitam-api-php
最新稳定版本:1.1.0
Composer 安装命令:
composer require libriciel/vitam-api-php
包简介
Vitam Client
README 文档
README
This is based on php-github-api by KnpLabs.
Requirements
- PHP >= 8.1
- A PSR-17 implementation
- A PSR-18 implementation
Basic usage of vitam-api-php client
<?php
require_once __DIR__ . '/vendor/autoload.php';
$url = 'https://vitam.domain.tld';
$certPath = '/path/to/the/certificate.p12';
$certPassphrase = 'passphrase_of_the_certificate';
$sipPath = '/path/to/my/sip.tar';
// Tenant number: X-Tenant-Id in request headers
$tenantId = 0;
// Context: X-Context-Id in request headers
$context = 'WORKFLOW';
$guzzle = new GuzzleHttp\Client([
'cert' => [
$certPath,
$certPassphrase,
],
]);
$vitamClient = VitamClient\Client::createWithHttpClient($guzzle, $url);
$ingest = $vitamClient->ingest();
$operationId = $ingest->create($tenantId, $sipPath, $context);
$atr = $ingest->getAtr($tenantId, $operationId);
From $vitamClient object, you have access to all available Vitam api endpoints.
统计信息
- 总下载量: 2.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-04