PHPackages                             kharhamel/office-template-engine - 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. kharhamel/office-template-engine

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

kharhamel/office-template-engine
================================

Template engine for php - easily create OpenOffice and Ms Office documents

v0.1.2(6y ago)0188[1 PRs](https://github.com/Kharhamel/office-template-engine/pulls)1MITPHPPHP &gt;=7.2

Since Jan 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Kharhamel/office-template-engine)[ Packagist](https://packagist.org/packages/kharhamel/office-template-engine)[ Docs](https://github.com/Kharhamel/office-template-engine)[ RSS](/packages/kharhamel-office-template-engine/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (4)Versions (7)Used By (1)

Office template engine for php
==============================

[](#office-template-engine-for-php)

This library allow you to easily inject text or images into a template office document

This project is a (still in progress) rewriting of the template engine TBS and its plugin OpenTBS, with more modern practices such as a CI environement, an exception-based error gestion, etc. Check its documentation here:

credits go to Skrol29 and the TinyButStrong team.

### Work in progress

[](#work-in-progress)

This project is a heavy wip. The first objective is to increase the code coverage as much as possible, before refractoring the code, and then maybe had features or edit the template syntax.

### Installation

[](#installation)

```
composer require kharhamel/office-template-engine
```

If you use symfony, a bundle is available:

```
composer require kharhamel/office-template-engine-bundle
```

### How to use

[](#how-to-use)

This project try to keep the same api than OpenTBS for the moment. Everything you can see in its doc should be applicable here.

### For more information ...

[](#for-more-information-)

read the TBS manual at

and the OpenTBS plugin documentation at [http://www.tinybutstrong.com/plugins/opentbs/tbs\_plugin\_opentbs.html](http://www.tinybutstrong.com/plugins/opentbs/tbs_plugin_opentbs.html)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.2% 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 ~3 days

Total

3

Last Release

2297d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10496706?v=4)[Arthmaël Poly](/maintainers/Kharhamel)[@Kharhamel](https://github.com/Kharhamel)

---

Top Contributors

[![Kharhamel](https://avatars.githubusercontent.com/u/10496706?v=4)](https://github.com/Kharhamel "Kharhamel (47 commits)")[![mbence](https://avatars.githubusercontent.com/u/2600280?v=4)](https://github.com/mbence "mbence (3 commits)")[![marcoleong](https://avatars.githubusercontent.com/u/119320?v=4)](https://github.com/marcoleong "marcoleong (1 commits)")

---

Tags

xlsxdocxodtdocumentOpenOfficepptxMS OfficeTBSOpenTBS

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kharhamel-office-template-engine/health.svg)

```
[![Health](https://phpackages.com/badges/kharhamel-office-template-engine/health.svg)](https://phpackages.com/packages/kharhamel-office-template-engine)
```

###  Alternatives

[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)[vaites/php-apache-tika

Apache Tika bindings for PHP: extracts text from documents and images (with OCR), metadata and more...

1171.5M2](/packages/vaites-php-apache-tika)[nuovo/spreadsheet-reader

Spreadsheet reader library for Excel, OpenOffice and structured text files

669863.2k8](/packages/nuovo-spreadsheet-reader)[avadim/fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP

2951.2M7](/packages/avadim-fast-excel-writer)[tinybutstrong/opentbs

With OpenTBS you can merge LibreOffice, OpenOffice and Ms Office documents with PHP using the TinyButStrong template engine. Simple use LibreOffice, OpenOffice or Ms Office to edit your templates : DOCX, XLSX, PPTX, ODT, OSD, ODP and other formats.

82751.1k1](/packages/tinybutstrong-opentbs)[avadim/fast-excel-reader

Lightweight and very fast XLSX Excel Spreadsheet Reader in PHP

104608.4k6](/packages/avadim-fast-excel-reader)

PHPackages © 2026

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