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(6y 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 yesterday

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 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

2237d 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.7M3.4k](/packages/craftcms-cms)[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[abydahana/aksara

Aksara is a modern, developer-friendly framework and CMS built on CodeIgniter 4, featuring rapid CRUD development, modular architecture, smart routing, flexible access control, API integration, and an AI assistant to make content management faster and smarter.

1141.2k](/packages/abydahana-aksara)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)[prestashop/prestashop

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

9.2k19.7k](/packages/prestashop-prestashop)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)

PHPackages © 2026

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