PHP code example of kiora / everial-bundle

1. Go to this page and download the library: Download kiora/everial-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kiora / everial-bundle example snippets


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

use Kiora\EverialClient;

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