PHPackages                             breadlesscode/office-converter - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. breadlesscode/office-converter

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

breadlesscode/office-converter
==============================

Convert office documents to something else

v1.0.2(8y ago)103183[2 issues](https://github.com/breadlesscode/office-converter/issues)1MITPHPPHP ^7.0CI failing

Since Nov 6Pushed 5y ago2 watchersCompare

[ Source](https://github.com/breadlesscode/office-converter)[ Packagist](https://packagist.org/packages/breadlesscode/office-converter)[ RSS](/packages/breadlesscode-office-converter/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (1)

Office converter (with LibreOffice)
===================================

[](#office-converter-with-libreoffice)

![Latest Stable Version](https://camo.githubusercontent.com/9605a7094d09a07a0821308342abad200176cf89958531e32e5171eece3f8e2b/68747470733a2f2f706f7365722e707567782e6f72672f62726561646c657373636f64652f6f66666963652d636f6e7665727465722f762f737461626c65)![Downloads](https://camo.githubusercontent.com/0077ef67d8d851fed177cad7297d3458f120cd0690092c56d6dc2595517e204f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62726561646c657373636f64652f6f66666963652d636f6e7665727465722e737667)![License](https://camo.githubusercontent.com/e3cb789b5746fe7c96e3fb1342b3ddd38ffa9c400e7c37441e79030d9a87a5c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62726561646c657373636f64652f6f66666963652d636f6e7665727465722e737667)

This package is for converting office formats to something else. You can generate Thumbnails, PDFs etc..

Requirements
------------

[](#requirements)

- [LibreOffice](https://libreoffice.org/) for the convertion.
- PHP &gt;= 7.1

Which extension can be converted to what?
-----------------------------------------

[](#which-extension-can-be-converted-to-what)

You can check the following files:

- [WriterConverter.php](src/Converters/WriterConverter.php)
- [CalcConverter.php](./src/Converters/CalcConverter.php)
- [DrawConverter.php](src/Converters/DrawConverter.php)
- [ImpressConverter.php](src/Converters/ImpressConverter.php)

Installation
------------

[](#installation)

This package can be installed through Composer.

```
composer require breadlesscode/office-converter
```

How to use
----------

[](#how-to-use)

```
use \Breadlesscode\Office\Converter;

Converter::file('Test.odt') // select a file for convertion
    ->setLibreofficeBinaryPath('/usr/bin/libreoffice') // binary to the libreoffice binary
    ->setTemporaryPath('./temp') // temporary directory for convertion
    ->setTimeout(100) // libreoffice process timeout
    ->save(__DIR__.'/lorem.pdf'); // save as pdf
```

Examples
--------

[](#examples)

### Save with original name in folder

[](#save-with-original-name-in-folder)

```
use Breadlesscode\Office\Converter;

Converter::file('./Test.odt')
    ->save('./lorem', 'jpg');
```

### Save with custom name

[](#save-with-custom-name)

```
use Breadlesscode\Office\Converter;

Converter::file('./Test.odt')
    ->save('./lorem.jpg');
```

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 68.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 ~19 days

Total

4

Last Release

3053d ago

Major Versions

v0.1.0-beta1 → v1.0.02017-12-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdcdca22aa31898d5baf2d516d9a364010b4ec751f887806b67cbca7529098ca?d=identicon)[breadlesscode](/maintainers/breadlesscode)

---

Top Contributors

[![breadlesscode](https://avatars.githubusercontent.com/u/5465112?v=4)](https://github.com/breadlesscode "breadlesscode (13 commits)")[![svwu](https://avatars.githubusercontent.com/u/12981671?v=4)](https://github.com/svwu "svwu (5 commits)")[![nikkolai14](https://avatars.githubusercontent.com/u/27313654?v=4)](https://github.com/nikkolai14 "nikkolai14 (1 commits)")

---

Tags

converterexportlibreofficeofficephppdfthumbnailconvertexportofficetextlibre

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/breadlesscode-office-converter/health.svg)

```
[![Health](https://phpackages.com/badges/breadlesscode-office-converter/health.svg)](https://phpackages.com/packages/breadlesscode-office-converter)
```

###  Alternatives

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[h4cc/wkhtmltopdf-amd64

Convert html to pdf using webkit (qtwebkit). Static linked linux binary for amd64 systems.

48724.6M38](/packages/h4cc-wkhtmltopdf-amd64)[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1623.1M35](/packages/kartik-v-yii2-export)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

32157.4k](/packages/aspose-cloud-aspose-words-cloud)[h4cc/wkhtmltopdf-i386

Convert html to pdf using webkit (qtwebkit). Static linked linux binary for i386 systems.

601.9M17](/packages/h4cc-wkhtmltopdf-i386)[wemersonjanuario/wkhtmltopdf-windows

Convert html to pdf using webkit (qtwebkit). Static linked windows binary for 32 bit and 64 bit systems.

461.1M4](/packages/wemersonjanuario-wkhtmltopdf-windows)

PHPackages © 2026

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