adiuvaris/reportlib
最新稳定版本:1.0.3
Composer 安装命令:
composer require adiuvaris/reportlib
包简介
A library to create dynamic pdf reports
README 文档
README
PHP Report Library
- category Library
- author Michael Hodel info@adiuvaris.ch
- copyright 2022-2023 Michael Hodel - Adiuvaris
- license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
- link https://www.adiuvaris.ch/reportlib
- source https://github.com/adiuvaris/ReportLib
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.
统计信息
- 总下载量: 86
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2022-12-29