library qbitreport
Es un proyecto de reportes
irvis/qbitreport
Es un proyecto de reportes
- Monday, June 12, 2017
- by irvis
- Repository
- 2 Watchers
- 0 Stars
- 59 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 2 % Grown
Reporteador PHP con Thinreport
Quick Start
Step1 Install Thinreports Editor
See the Official Installation Guide., (*1)
Step2 Install Thinreports Generator for PHP
$ composer require irvis/qbitreport dev-master
Follow "Step1 Creating the layout for the report" section in the official doucmentation., (*2)
Step4 Write code for generating a PDF
<?php
// date_default_timezone_set('Asia/Tokyo');
$report = new Thinreports\Report('hello_world.tlf');
// 1st page
$page = $report->addPage();
$page->item('world')->setValue('World');
$page->item('thinreports')->setValue('Thinreports');
// 2nd page
$page = $report->addPage();
$page('world')->setValue('PHP');
$page('thinreports')->setValue('Thinreports PHP');
// 3rd page
$page = $report->addPage();
$page('world')->setValue('World')
->setStyle('color', '#ff0000');
$page('hello')->hide();
// 4th page
$page = $report->addPage();
$page->setItemValue('thinreports', 'PDF');
$page->setItemValues(array(
'world' => 'PHP'
));
// 5th page
$page = $report->addPage();
$page->item('world_image')->setSource('/path/to/world.png');
// 6th page: Using other .tlf file
$page = $report->addPage('hello_php.tlf')
$page->item('world')->setValue('php');
// 7th page: Insert a blank page
$report->addBlankPage();
$report->generate('hello_world.pdf');
// You can get content of the PDF in the following code:
$pdf_data = $report->generate();
License
Thinreports PHP is licensed under the MIT-License.
See LICENSE for further details., (*3)
Dependency Library & Resource
TCPDF
LGPLv3 / Copyright (c) Nicola Asuni Tecnick.com LTD, (*4)
dev-master
9999999-dev
Es un proyecto de reportes
Sources
Download
MIT
The Requires
by
Irvis Isaac Ozuna