PHPackages                             openworks-srl/documentor - 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. openworks-srl/documentor

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

openworks-srl/documentor
========================

PHP5 lib to dynamically generate office document, starting from html page, twig template, data array, word template and more. Based on several popular open-source software.

1.0.8(5y ago)181Apache-2.0PHPCI failing

Since Nov 21Pushed 5y agoCompare

[ Source](https://github.com/openworks-srl/documentor)[ Packagist](https://packagist.org/packages/openworks-srl/documentor)[ RSS](/packages/openworks-srl-documentor/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)Dependencies (9)Versions (10)Used By (0)

Documentor
==========

[](#documentor)

PHP5 library to dynamically generate office document, starting from html page, twig template, data array, word template and more. This software is just a sort of wrapper that use several great library toghether to easy generate document.

> The version 1.x has to be intended as Php 5.x compliant, a 2.x version (Php 7.x compliant) will be released soon. Some of the dependency may be old and/or may has been deprecated, because Php 5 has been officialy deprecated, but, for us, Php 5.x compliance is, right now, actualy a need.

The librarys taht this software is built on are (in no particular order):

- [mikehaertl/phpwkhtmltopdf](https://github.com/mikehaertl/phpwkhtmltopdf)
- [PHPOffice/PHPWord](https://github.com/PHPOffice/PHPWord)
- [PHPOffice/PHPExcel](https://github.com/PHPOffice/PHPExcel)
- [twigphp/Twig](https://github.com/twigphp/Twig)

What can this library do?
-------------------------

[](#what-can-this-library-do)

More deatil on how to use each mode below this section.

#### Generate word (and word like) document such as .docx, .doc, .odt starting from:

[](#generate-word-and-word-like-document-such-as-docx-doc-odt-starting-from)

- A plain html page
- A twig template (full twig syntaxs and constructs can be used, data can be passed to be filled in the template)
- Existing document template (.doc, .docx) (data can be passed to be filled in the template)
- Merging exisng document (.doc, .docx) with an html (or twig) part. (Useful for use with fancy/complex header or toc)
- Manually (using [PHPOffice/PHPWord](https://phpword.readthedocs.io/en/latest/general.html#) api)

#### Generate excel (and excel like) document such as .xlsx, .xls, .ods starting from:

[](#generate-excel-and-excel-like-document-such-as-xlsx-xls-ods-starting-from)

- A plain html page
- A twig template (full twig syntaxs and constructs can be used, data can be passed to be filled in the template)
- Array of data (existing document template can be used)
- Manually (using [PHPOffice/PHPExcel](https://github.com/PHPOffice/PHPExcel/tree/1.8/Documentation/markdown/Overview) api)

#### Generate pdf document starting from:

[](#generate-pdf-document-starting-from)

- A plain html page
- A twig template (full twig syntaxs and constructs can be used, data can be passed to be filled in the template)
- An exsisting Word (docx, doc, odt) or Excel (xlsx, xls, ods) file.
- A Word template (.doc, .docx) (data can be passed to be filled in the template)

How can i use this library?
---------------------------

[](#how-can-i-use-this-library)

> Coming soon...

How this works internaly?
-------------------------

[](#how-this-works-internaly)

[Generated documentation](https://openworks-srl.github.io/documentor/) (not completed yet!)

> Coming soon...

How can i contribuite to this library?
--------------------------------------

[](#how-can-i-contribuite-to-this-library)

> Coming soon...

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~28 days

Total

9

Last Release

2142d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58000969?v=4)[OpenWorks srl](/maintainers/openworks-srl)[@openworks-srl](https://github.com/openworks-srl)

---

Top Contributors

[![StefanoGrado](https://avatars.githubusercontent.com/u/26261470?v=4)](https://github.com/StefanoGrado "StefanoGrado (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/openworks-srl-documentor/health.svg)

```
[![Health](https://phpackages.com/badges/openworks-srl-documentor/health.svg)](https://phpackages.com/packages/openworks-srl-documentor)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1101.2k](/packages/abydahana-aksara)[jgrygierek/batch-entity-import-bundle

Importing entities with preview and edit features for Symfony.

101.1M1](/packages/jgrygierek-batch-entity-import-bundle)

PHPackages © 2026

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