PHPackages                             yangdaokai/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yangdaokai/php-unoconv

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yangdaokai/php-unoconv
======================

4.1.0(8y ago)03MITPHPPHP ~7.0

Since Dec 21Pushed 4y agoCompare

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

READMEChangelogDependencies (3)Versions (8)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": {
        "yangdaokai/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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 91.5% 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

2428d 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/275e35e9fc020c073a730f733347a1824addd0c08b91af00d9b58946858fa6cc?d=identicon)[yangdaokai](/maintainers/yangdaokai)

---

Top Contributors

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

---

Tags

unoconv

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[php-unoconv/php-unoconv

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

77345.9k2](/packages/php-unoconv-php-unoconv)[php-mp4box/php-mp4box

PHP MP4Box, an Object Oriented library for easy file conversion with MP4 Box

16217.3k1](/packages/php-mp4box-php-mp4box)

PHPackages © 2026

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