kiora/everial-bundle

此软件包的最新版本(1.1.2)没有可用的许可证信息。

everial 库的捆绑包

1.1.2 2020-10-25 22:28 UTC

This package is auto-updated.

Last update: 2024-09-26 07:02:59 UTC


README

安装

使用 composer,要求: composer require kiora/everial-bundle

然后在您的内核中启用它(如果您使用的是与 Symfony4 的 Flex 菜单,则此步骤是可选的)

// config/bundles.php
return [
    //...
    Kiora\EverialBundle\EverialBundle::class => ['all' => true],
    //...
];

配置

kiora_everial:
    auth_base_path: "https://auth.doclab.everial.com/auth/realms/quota/protocol/openid-connect/token"
    base_path: "https://radial.my-company.com"
    username: "foo"
    password: "bar"

用法

use Kiora\EverialClient;

class SomeController
{
    public function test(EverialClient $everailClient)
    {
        $file = new \SplFileObject('file.pdf');
    
        $reponse = $everailClient->serialize($file)->toArray();
        
        return $reponse;
    }
}