PHPackages                             kdubuc/odt - 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. kdubuc/odt

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

kdubuc/odt
==========

ODT rendering

0241PHP

Since Aug 25Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/kdubuc/odt-template)[ Packagist](https://packagist.org/packages/kdubuc/odt)[ RSS](/packages/kdubuc-odt/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

ODT
===

[](#odt)

kdubuc/odt is a library to quickly generate Open Document Text-files using a simple templating mechanism. Spiritual successor to [odtphp](https://github.com/cybermonde/odtphp).

UNDER ACTIVE DEVELOPMENT - EXPECT BC BREAKS

Install
-------

[](#install)

Via Composer

```
$ composer require kdubuc/odt
```

Documentation
-------------

[](#documentation)

### Tags

[](#tags)

Use Date, Field, QrCode and other tags to build your templates.

##### Conditional

[](#conditional)

The Conditional Tag allows to render contents only if condition is true.

```
[IF key]
[/IF key]

```

##### Date

[](#date)

The Date Tag allows to display date values (fr locale only).

```
{date:key}

```

##### Field

[](#field)

The Field Tag allows to display different string values.

```
{field:key}

```

##### Image

[](#image)

The Image Tag allows adding images from URL.

```
{image:key}

```

##### Segment

[](#segment)

The Segment Tag allows to group other tags and iterate array data. The Segment is used as a template to render each row in the data set.

Usage :

```
[SEGMENT key]
[/SEGMENT key]

```

##### QrCode

[](#qrcode)

The QrCode Tag components allow rendering QR codes from any field in the data set.

Usage :

```
{qrcode:key,size:150}

```

Options :

- size : QrCode size in pixel
- margin : Margin in pixel applied to QrCode

##### Markdown

[](#markdown)

The Markdown Tag allows rendering Markdown content.

Usage :

```
{md:key}

```

##### Table

[](#table)

The Simple Table Tag allows rendering a table by duplicating each table row in the document. The field must be an array of associative arrays, where each associative array represents a row in the table. The last row of the table must be the template row, which will be duplicated for each row in the data set.

Usage :

```
[TABLE key]
(...table...)
[/TABLE key]

```

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Kévin DUBUC](https://github.com/kdubuc)
- [All Contributors](https://github.com/kdubuc/odt/graphs/contributors)

License
-------

[](#license)

The CeCILL-B License. Please see [License File](LICENSE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance44

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/28f3584f827147e98199dbdd7fd524a17831006792f6c0fac136b5d591d0d6bf?d=identicon)[kdubuc](/maintainers/kdubuc)

---

Top Contributors

[![kdubuc](https://avatars.githubusercontent.com/u/895661?v=4)](https://github.com/kdubuc "kdubuc (35 commits)")

### Embed Badge

![Health badge](/badges/kdubuc-odt/health.svg)

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

###  Alternatives

[phpoffice/phpspreadsheet

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

13.9k293.5M1.2k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M100](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M215](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M128](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

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