2017 © Pedro Peláez
 

library unoconv

Unoconv wrapper for PHP

image

mnvx/unoconv

Unoconv wrapper for PHP

  • Monday, January 16, 2017
  • by mnvx
  • Repository
  • 1 Watchers
  • 1 Stars
  • 267 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 24 % Grown

The README.md

PHP wrapper over Unoconv

Simple way for documents conversion into various formats., (*1)

For example: html -> docx, html -> pdf, docx -> html and many more., (*2)

More about supported formats., (*3)

Usage

use Mnvx\Unoconv\Converter;
use Mnvx\Unoconv\UnoconvParameters;
use Mnvx\Unoconv\Format;

// Create converter
$converter = new Converter();

// Describe parameters for converter
$parameters = (new UnoconvParameters())
    // HTML document as string on input
    ->setInputStream('<!DOCTYPE html><html>Example of HTML document</html>')
    // Result file name
    ->setOutputFile('path-to-result-docx.docx')
    // Format of result document is docx
    ->setOutputFormat(Format::FORMAT_TEXT_DOCX);

// Run converter
$converter->convert($parameters);

Install

sudo apt-get install unoconv
composer require mnvx/unoconv

If you have problems with Unoconv utility, read instructions descibed in official documentation., (*4)

License

Released under the MIT license, (*5)

The Versions

16/01 2017

dev-master

9999999-dev https://github.com/mnvx/unoconv

Unoconv wrapper for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

unoconv

15/01 2017

1.0.2

1.0.2.0 https://github.com/mnvx/unoconv

Unoconv wrapper for PHP

  Sources   Download

MIT

The Requires

 

unoconv