PHPackages                             darkdarin/lowrapper - 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. darkdarin/lowrapper

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

darkdarin/lowrapper
===================

PHP wrapper over LibreOffice converter

v2.1.0(2mo ago)0448↓50%MITPHPPHP 8.2.\*|8.3.\*|8.4.\*|8.5.\*

Since May 1Pushed 2mo agoCompare

[ Source](https://github.com/darkdarin/lowrapper)[ Packagist](https://packagist.org/packages/darkdarin/lowrapper)[ Docs](https://github.com/darkdarin/lowrapper)[ RSS](/packages/darkdarin-lowrapper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Master Status: [![Build Status](https://camo.githubusercontent.com/6b100a6477cf11fd57a83eb774f781c1cb0f86814501bdb21c0de94ca5a26d13/68747470733a2f2f7472617669732d63692e6f72672f6d6e76782f6c6f777261707065722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/mnvx/lowrapper)

PHP wrapper over LibreOffice converter
======================================

[](#php-wrapper-over-libreoffice-converter)

Simple way for documents conversion into various formats.

For example: html -&gt; docx, html -&gt; pdf, docx -&gt; html and many more.

[![Formats](examples/formats.jpg "Formats")](examples/formats.jpg)

Usage
-----

[](#usage)

```
use DarkDarin\Lowrapper\Converter;
use DarkDarin\Lowrapper\LowrapperParameters;
use DarkDarin\Lowrapper\Format\TextFormatEnum;

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

// Describe parameters for converter
$parameters = (new LowrapperParameters(TextFormatEnum::DOCX))
    // HTML document
    ->setInputFile('test.html')
    // Result file name
    ->setOutputFile('path-to-result-docx.docx');

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

More [examples](/examples)

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

[](#requirements)

- PHP 5.5+
- libreoffice-core

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

[](#installation)

```
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update
sudo apt-get install default-jdk -y
sudo apt-get install python-software-properties  -y
sudo apt-get install software-properties-common -y
sudo apt-get install libreoffice-core --no-install-recommends
sudo apt-get install libreoffice-writer
composer require mnvx/lowrapper
```

Example of installation libreoffice into docker container:

```
FROM php:7.2-fpm

WORKDIR /var/www/html

# Install libreoffice headless
RUN apt update -y \
    && mkdir -p /usr/share/man/man1 \
    && apt -y install default-jdk-headless libreoffice-core libreoffice-writer libreoffice-calc
RUN mkdir -p /var/www/.cache/dconf \
    && mkdir -p /var/www/.config/libreoffice \
    && chmod -R ugo+rwx /var/www/.cache \
    && chmod -R ugo+rwx /var/www/.config
```

Run tests
---------

[](#run-tests)

```
./vendor/bin/phpunit
```

License
-------

[](#license)

Released under the MIT license

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance83

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.8% 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 ~661 days

Total

2

Last Release

86d ago

PHP version history (2 changes)v2.0.0PHP 8.2.\*|8.3.\*

v2.1.0PHP 8.2.\*|8.3.\*|8.4.\*|8.5.\*

### Community

Maintainers

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

---

Top Contributors

[![mnvx](https://avatars.githubusercontent.com/u/829880?v=4)](https://github.com/mnvx "mnvx (28 commits)")[![kosuha606](https://avatars.githubusercontent.com/u/13706149?v=4)](https://github.com/kosuha606 "kosuha606 (2 commits)")[![markitosgv](https://avatars.githubusercontent.com/u/1706470?v=4)](https://github.com/markitosgv "markitosgv (2 commits)")[![jszobody](https://avatars.githubusercontent.com/u/203749?v=4)](https://github.com/jszobody "jszobody (1 commits)")[![jumper423](https://avatars.githubusercontent.com/u/12099016?v=4)](https://github.com/jumper423 "jumper423 (1 commits)")[![taschan23](https://avatars.githubusercontent.com/u/65668138?v=4)](https://github.com/taschan23 "taschan23 (1 commits)")[![darkdarin](https://avatars.githubusercontent.com/u/6123038?v=4)](https://github.com/darkdarin "darkdarin (1 commits)")[![vyacheslav-startsev](https://avatars.githubusercontent.com/u/25704924?v=4)](https://github.com/vyacheslav-startsev "vyacheslav-startsev (1 commits)")[![dehbka](https://avatars.githubusercontent.com/u/16839017?v=4)](https://github.com/dehbka "dehbka (1 commits)")[![Gemorroj](https://avatars.githubusercontent.com/u/885731?v=4)](https://github.com/Gemorroj "Gemorroj (1 commits)")

---

Tags

pdfexcelxlsxlsxconverterworddocxLibreOffice

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/darkdarin-lowrapper/health.svg)

```
[![Health](https://phpackages.com/badges/darkdarin-lowrapper/health.svg)](https://phpackages.com/packages/darkdarin-lowrapper)
```

###  Alternatives

[mnvx/lowrapper

PHP wrapper over LibreOffice converter

129190.5k](/packages/mnvx-lowrapper)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3685.2M19](/packages/gotenberg-gotenberg-php)[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[rap2hpoutre/fast-excel

Fast Excel import/export for Laravel

2.3k24.9M47](/packages/rap2hpoutre-fast-excel)[mk-j/php_xlsxwriter

PHP Library to write XLSX files

1.9k8.1M27](/packages/mk-j-php-xlsxwriter)[anourvalar/office

Generate documents from existing Excel &amp; Word templates | Export tables to Excel (Grids)

24085.2k](/packages/anourvalar-office)

PHPackages © 2026

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