kiora/everial-bundle

There is no license information available for the latest version (1.1.2) of this package.

A bundle for everial lib

1.1.2 2020-10-25 22:28 UTC

This package is auto-updated.

Last update: 2024-11-26 07:23:16 UTC


README

Installation

With composer, require: composer require kiora/everial-bundle

Then enable it in your kernel (optional if you are using the Flex recipe with Symfony4) :

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

Configuration

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"

Usage

use Kiora\EverialClient;

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