Skip to content

adiuvaris/ReportLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReportLib

PHP Report Library

Description

PHP library for generating dynamic PDF reports using the TCPDF library to create the PDF documents. The library works with nested rectangle regions on the paper where the sizes can be defined in millimeters or in percent of the surrounding rectangle or the library calculates them by the content.

Main Features:

  • all standard page formats (from TCPDF), custom page margins;
  • different page formats in one report;
  • management of text styles;
  • images, 2D barcodes (e.g. QR);
  • page header and footer management;
  • automatic page break, line break and text alignments;
  • automatic page numbering;
  • support for tables with a lot of features (e.g. automatic repeat the table header row after page break)
  • nested structure of rectangles to create the report structure

Install

Via Composer

$ composer require adiuvaris/ReportLib

Usage

<?php
require __DIR__ . "/vendor/autoload.php";
use Adi\ReportLib as ReportLib;
$rp = new ReportLib\Report();
$rp->getBody()->AddText("ReportLib test.",ReportLib\TextStyles::getTextStyle(ReportLib\TextStyles::NORMAL));
$rp->output(__DIR__ . "/test.pdf");

License

GNU LESSER GENERAL PUBLIC LICENSE. Please see License File for more information.

About

PHP library to create PDF Reports

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages