Tagliatelle: PDF generator for price-tags, badges, labels, etc
This package is auto-updated.
Last update: 2024-01-29 02:52:17 UTC
Tagliatelle allows you to define templates and page formats, and generate PDF labels based on record data (a csv, array, etc).
After cloning this repository to your local machine, make sure to install the dependencies:
Then you can invoke Tagliatelle from the commandline as follows:
./bin/tagliatelle example/template.xml example/page.xml example/data.csv output.pdf
You can inspect the
example/page.xml to see how this works.
example/data.csv file simply contains some test data that you can use.
Calling the above command will generate a new
output.pdf, that you can preview like this:
Add the following to your composer.json of your project:
composer update to install the new project dependency.
Next, refer to the
example/ directory to see how to use the library.
You can either manually construct the templates and pages (
example/manual.php) or use the included
loaders to load the template and page formats from xml files (
In case you are very confused about what you just read, and you just came here for pasta, check out:
MIT. Please refer to the license file for details.
Check out our other projects at linkorb.com/engineering.
Btw, we're hiring!