定制 libriciel/vitam-api-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-04