This bundle allows you to convert files through unoconv (LibreOffice)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Command
DependencyInjection
Resources
Service
.gitignore
JMDUnoconvBundle.php
README.md
composer.json

README.md

JMDUnoconvBundle

This bundle provide gateway near php-unoconv/php-unoconv and symfony 2.

Installation

composer require jmd/unoconv-bundle
// app/AppKernel.php
$bundles = array(
            ...
            new JMD\UnoconvBundle\JMDUnoconvBundle(),
            ...
        );

Configuration

jmd_unoconv:
    config:
        timeout: 42
        binaries: /usr/bin/unoconv

Usage

$unoconv = $this->get('jmd_unoconv');
$unoconv->convert($inputFile, $format);
$unoconv->convert($inputFile, $format, $outputFile);

Console command:

php app/console jmd:unoconv:convert format /path/to/some/input_File -o /path/to/output/file