kdubuc/odt is a library to quickly generate Open Document Text-files using a simple templating mechanism. Spiritual successor to odtphp.
UNDER ACTIVE DEVELOPMENT - EXPECT BC BREAKS
Via Composer
$ composer require kdubuc/odt
Use Date, Field, QrCode and other tags to build your templates.
The Conditional Tag allows to render contents only if condition is true.
[IF key]
[/IF key]
The Date Tag allows to display date values (fr locale only).
{date:key}
The Field Tag allows to display different string values.
{field:key}
The Image Tag allows adding images from URL.
{image:key}
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]
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
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The CeCILL-B License. Please see License File for more information.