PHPackages                             ogrygorash/php-unoconv - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. ogrygorash/php-unoconv

ActiveLibrary[File &amp; Storage](/categories/file-storage)

ogrygorash/php-unoconv
======================

Unoconv PHP, an Object Oriented library for easy file conversion with LibreOffice's unoconv

4.1.0(8y ago)091MITPHPPHP ~7.0

Since Dec 21Pushed 1y agoCompare

[ Source](https://github.com/allied-american/PHP-Unoconv)[ Packagist](https://packagist.org/packages/ogrygorash/php-unoconv)[ RSS](/packages/ogrygorash-php-unoconv/feed)WikiDiscussions develop Synced 5d ago

READMEChangelogDependencies (3)Versions (11)Used By (0)

PHP Unoconv
===========

[](#php-unoconv)

[![Build Status](https://camo.githubusercontent.com/99924c196fbeabb4f5ba62067194b49ed59e5d68242eff816c8731cb7507af80/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f616c6368656d792d66722f5048502d556e6f636f6e762e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/alchemy-fr/PHP-Unoconv)

An Object Oriented library which allow easy to use file conversion with Unoconv.

Install
-------

[](#install)

The recommended way to install PHP-Unoconv is [through composer](http://getcomposer.org).

```
{
    "require": {
        "php-unoconv/php-unoconv": "~0.2"
    }
}
```

Documentation
-------------

[](#documentation)

Documentation available at

API Usage
---------

[](#api-usage)

To instantiate Unoconv driver, the easiest way is :

```
$unoconv = Unoconv\Unoconv::create();
```

You can customize your driver by passing a `Psr\Log\LoggerInterface` or configuration options.

Available options are :

- `timeout` : the timeout for the underlying process.
- `unoconv.binaries` : the path (or an array of paths) for a custom binary.

```
$unoconv = Unoconv\Unoconv::create(array(
    'timeout'          => 42,
    'unoconv.binaries' => '/opt/local/unoconv/bin/unoconv',
), $logger);
```

To convert a file, use the `convert` method. For the complete format list supported by unoconv, refer to the unoconv CLI.

```
$unoconv->convert('document.docx', 'pdf', 'document.pdf');
```

You can optionaly convert a given page range using the fourth argument :

```
// pages 1 to 14
$unoconv->convert('document.docx', 'pdf', 'document.pdf', '1-14');
```

Silex Service Provider
----------------------

[](#silex-service-provider)

A [Silex](silex.sensiolabs.org) Service Provider is available, all parameters are optionals :

```
$app = new Silex\Application();
$app->register(new Unoconv\UnoconvServiceProvider(), array(
    'unoconv.configuration' => array(
        'unoconv.binaries' => '/opt/local/unoconv/bin/unoconv',
        'timeout'          => 42,
    ),
    'unoconv.logger'  => $app->share(function () {
        return $app['monolog']; // use Monolog service provider
    }),
));
```

License
-------

[](#license)

Released under the MIT license

[![Bitdeli Badge](https://camo.githubusercontent.com/b813f80791941dc4bf4f4f337613cfe0c90cb8998cf74fc0f15661b5546534e1/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f616c6368656d792d66722f7068702d756e6f636f6e762f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 83.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~491 days

Recently: every ~602 days

Total

6

Last Release

2435d ago

Major Versions

0.3.0 → 4.1.02018-04-23

PHP version history (2 changes)0.1.0PHP &gt;=5.3.3

4.1.0PHP ~7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b184c163074106ff9f4d97902f3b68b097c2ab688766c9922a074be4a5fb1a6?d=identicon)[ogrygorash](/maintainers/ogrygorash)

---

Top Contributors

[![romainneutron](https://avatars.githubusercontent.com/u/137574?v=4)](https://github.com/romainneutron "romainneutron (54 commits)")[![ogrygorash](https://avatars.githubusercontent.com/u/28525743?v=4)](https://github.com/ogrygorash "ogrygorash (8 commits)")[![aynsix](https://avatars.githubusercontent.com/u/35221835?v=4)](https://github.com/aynsix "aynsix (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![jygaulier](https://avatars.githubusercontent.com/u/1247618?v=4)](https://github.com/jygaulier "jygaulier (1 commits)")

---

Tags

unoconv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ogrygorash-php-unoconv/health.svg)

```
[![Health](https://phpackages.com/badges/ogrygorash-php-unoconv/health.svg)](https://phpackages.com/packages/ogrygorash-php-unoconv)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
