All Projects → thinreports-php → Thinreports Php

thinreports-php / Thinreports Php

Licence: other
An implementation of the Thinreports Generator in PHP. It provides easy and simple way for generating a PDF on pure PHP.

Projects that are alternatives of or similar to Thinreports Php

Jasperreports
JasperReports® - Free Java Reporting Library
Stars: ✭ 540 (+958.82%)
Mutual labels:  reporting, pdf
Sentinl
Kibana Alert & Report App for Elasticsearch
Stars: ✭ 1,233 (+2317.65%)
Mutual labels:  reporting, pdf
Pyreportjasper
Python Reporting with JasperReports
Stars: ✭ 77 (+50.98%)
Mutual labels:  reporting, pdf
Pdf reports
📕 Python library and CSS theme to generate PDF reports from HTML/Pug
Stars: ✭ 142 (+178.43%)
Mutual labels:  reporting, pdf
Thinreports Generator
Report Generator for Ruby
Stars: ✭ 268 (+425.49%)
Mutual labels:  reporting, pdf
Yarg
Yet Another Report Generator - CUBA Platform reporting engine
Stars: ✭ 215 (+321.57%)
Mutual labels:  reporting, pdf
Simplewpfreporting
Reporting in WPF (XAML) made easy
Stars: ✭ 87 (+70.59%)
Mutual labels:  reporting, pdf
Fluentreports
📄 Fluent Reports - Data Driven Reporting Engine for Node.js and Browsers 📄
Stars: ✭ 305 (+498.04%)
Mutual labels:  reporting, pdf
Jsreport
javascript based business reporting platform 🚀
Stars: ✭ 798 (+1464.71%)
Mutual labels:  reporting, pdf
Markdown2pdf
A simple library to convert markdown to pdf using Java
Stars: ✭ 41 (-19.61%)
Mutual labels:  pdf
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (-11.76%)
Mutual labels:  pdf
Thinreports
Thinreports is an open source report creation tool for Ruby.
Stars: ✭ 40 (-21.57%)
Mutual labels:  pdf
Openvasreporting
OpenVAS Reporting: Convert OpenVAS XML report files to reports
Stars: ✭ 42 (-17.65%)
Mutual labels:  reporting
Owasp Masvs
The Mobile Application Security Verification Standard (MASVS) is a standard for mobile app security.
Stars: ✭ 1,030 (+1919.61%)
Mutual labels:  pdf
Mkdocs With Pdf
Generate a single PDF file from MkDocs repository.
Stars: ✭ 39 (-23.53%)
Mutual labels:  pdf
Mobius
Scripts to extract data from the COVID-19 Google Community Mobility Reports
Stars: ✭ 47 (-7.84%)
Mutual labels:  pdf
Ng2 Pdf Viewer
📄 PDF Viewer Component for Angular 5+
Stars: ✭ 997 (+1854.9%)
Mutual labels:  pdf
Gowitness
🔍 gowitness - a golang, web screenshot utility using Chrome Headless
Stars: ✭ 996 (+1852.94%)
Mutual labels:  reporting
Koreader
An ebook reader application supporting PDF, DjVu, EPUB, FB2 and many more formats, running on Cervantes, Kindle, Kobo, PocketBook and Android devices
Stars: ✭ 9,467 (+18462.75%)
Mutual labels:  pdf
Format parser
file metadata parsing, done cheap
Stars: ✭ 46 (-9.8%)
Mutual labels:  pdf

Thinreports Generator for PHP

Latest Stable Version Latest Unstable Version Build Status Code Climate


Currently, New layout format generated by Thinreports Editor 0.9+ is not supported. You can use Thinreports Editor 0.8 to refer to How to install old version. The support project is in progress.


About

Thinreports Generator for PHP is an implementation of the Thinreports Generator in PHP. It provides easy and simple way for generating a PDF on pure PHP.

What is Thinreports

Thinreports is an open source report generation tools. It provides the Thinreports Editor which is a tool for designing a report format, and the Thinreports Generator for Ruby which is a library for generating a PDF.

Please see the following pages for further details.

Getting Started

Supported PHP versions

Compatibility with Thinreports

  • Thinreports Editor >= 0.8 and < 0.9

Quick Start

Step1 Install Thinreports Editor

See the Official Installation Guide.

Step2 Install Thinreports Generator for PHP

$ composer require thinreports-php/thinreports-php

Step3 Create a report format file using the Editor

Follow "Step1 Creating the layout for the report" section in the official doucmentation.

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();

NOTE: If you want to render multi-byte characters such as "日本語", you need to configure the IPAFont to font-family property of the Text-block in the Editor.

Development Community

Gitter

Features

Implemented

See Quick Start and Quick Reference for currently available features.

Not Implemented

  • List
  • Disabling Hyphenation
  • Font Fallback
  • Permission and Security settings of PDF

Other Tasks

  • Memory Usage Optimization - Disposing raw base64-data after generating a image file

License

Thinreports PHP is licensed under the MIT-License. See LICENSE for further details.

Dependency Library & Resource

TCPDF

LGPLv3 / Copyright (c) Nicola Asuni Tecnick.com LTD

IPA Font

IPA Font License Agreement v1.0

Copyright

Copyright (c) 2015 Matsukei Co.,Ltd.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].