PHPackages                             lcp0578/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. lcp0578/php-unoconv

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

lcp0578/php-unoconv
===================

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

4.1.2(7y ago)0728↓20%MITPHPPHP ~7.0

Since Dec 21Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (9)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 transcode a file, use the `transcode` method. For the complete format list supported by unoconv, refer to the unoconv CLI.

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

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

```
// pages 1 to 14
$unoconv->transcode('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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 96.4% 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 ~388 days

Recently: every ~551 days

Total

7

Last Release

2610d 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/9c18baa4040daa8e7a0e7bb992fc2c566ef065876e0f9c12805c712127ac16dd?d=identicon)[kitlabs](/maintainers/kitlabs)

---

Top Contributors

[![romainneutron](https://avatars.githubusercontent.com/u/137574?v=4)](https://github.com/romainneutron "romainneutron (54 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![lcp0578](https://avatars.githubusercontent.com/u/10859621?v=4)](https://github.com/lcp0578 "lcp0578 (1 commits)")

---

Tags

unoconv

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[php-unoconv/php-unoconv

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

74352.3k2](/packages/php-unoconv-php-unoconv)

PHPackages © 2026

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