1. Go to this page and download the library: Download mrcnpdlk/unoconv-api 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/ */
mrcnpdlk / unoconv-api example snippets
use Monolog\Handler\ErrorLogHandler;
use Psr\Log\LogLevel;
$logger->pushHandler(new ErrorLogHandler(ErrorLogHandler::OPERATING_SYSTEM, LogLevel::DEBUG));
// Set default value for handler
$oConfig = new \Mrcnpdlk\Api\Unoconv\Config([
'binary' => '/usr/bin/unoconv',
'logger' => $logger,
'timeout'=> 300
]);
$oApi = new \Mrcnpdlk\Api\Unoconv\Api($oConfig);