jasphp A new extension to integrate jasper reports with PHP


Since this extension took too much of my time, i stopped the development, so i'm sorry to say that i almost didn't do anything more to improve it.

IMPORTANT Info: I've developed this extension in my work to help me to generate PDF Reports, if you want to help me, i appreciate!


Yii 1.1.5 is required
Jasper Reports

What have in this extension

FDPF lib (http://www.fpdf.org/)
Xml2Pdf lib (http://www.geelweb.org)


In your protected/config/main.php config file, add the following to the file:
'import' => array(
    'components' => array(
        'jasPHP' => array(
            'class' => 'JasPHP',

That's all you have to do for setup. You can use like this. Example:

Yii::app()->jasPHP->create(getcwd() . '/reports/', 'reportName.jrxml', array('parameter1' => $parameter1,), array('property1' => $property1,));
  • $reportDir: the report directory
  • $reportName: the report file name
  • $parameters: all the parameters that you need
  • $config: all the configs that you need

Embedded documents

There isn't yet...=/
3 0
2 970 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Tags: Jasper, PDF, PHP, Report
Developed by: Eric Maicon
Created on: Mar 30, 2012
Last updated: 10 years ago


show all

Related Extensions