PHPackages                             alienproject/pdfreport - 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. [Templating &amp; Views](/categories/templating)
4. /
5. alienproject/pdfreport

ActiveLibrary[Templating &amp; Views](/categories/templating)

alienproject/pdfreport
======================

A library that allows you to generate PDF reports from an XML template describing the document, with placeholders for data.

1.0.5(5mo ago)1741LGPL-3.0-or-laterPHPPHP &gt;=8.0

Since Aug 19Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/alienproject-org/pdfreport)[ Packagist](https://packagist.org/packages/alienproject/pdfreport)[ Docs](https://github.com/alienproject-org/alienproject)[ Fund](https://www.paypal.com/paypalme/maxbrugne/10)[ RSS](/packages/alienproject-pdfreport/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

PDFReport
=========

[](#pdfreport)

A library that allows you to generate PDF reports from an XML template describing the document, with placeholders for data.

For general information about this project, visit:

Introduction
------------

[](#introduction)

### How the PDFReport library works

[](#how-the-pdfreport-library-works)

The library uses an XML template that describes the structure of the PDF document (for example, page size and orientation, objects to display: text, lines, rectangles, barcodes, graphics, etc.) and the data to print (via placeholders that are automatically replaced with the data).

### PHP Code Example

[](#php-code-example)

For very simple reports, you can create a PHP report with just 5 lines of code, as the following example:

```
