PHP JasperXML



 

Hi, We are actively using it and it supports php7.0 now. Unfortunately, we are packed with development job causing us not to have enough time to contribute to this project. However, we are open to anyone who would like to contribute and help to maintain this valuable project.

Latest update at https://github.com/SIMITGROUP/phpjasperxml

 

Any issue kindly proceed to there. We won't able to provide support but we will once a while revisit and reply there. So far lot of people is using phpjasperxml and we're let community down cause we doesn't provide good support to them. Please update website say we'd put our latest update at https://github.com/SIMITGROUP/phpjasperxml Any issue kindly proceed to there. We won't able to provide support but we will once a while revisit and reply there.

 

Download PHPJasperXML 0.9d here.

 
[About PHPJasperXML]

We initialized this project (Actually it is a class) because we want to develop web report in php easily (The output of report is PDF because it is an independent platform and printer friendly). This project allows php programmer or report designer designs php web report easily. Even a very junior PHP programmer ables to design the PDF report with iReport (java based WYSIWYG report designer), but runs natively in PHP. This project is completely different from php-java bridge, a wrapper class will convert report element from jrxml and pass to fpdf class.


Advantages:

  1. Develop PDF report with iReport, which is fast, flexible and effective
  2. Run natively in PHP, no integration with Java
  3. Integrate to your existing project easily
  4. You can submit whatever parameter into your PDF report easily, either with GET or POST
  5. Open sourced, you can change the library yourself.

Currently this project is consider stable but there are a lot of function in jasper report is not ready yet because compatibility issue between JAVA and PHP. However, you'll found that it already can create a lot of reports easily.

You can download 0.9d:

 

Download PHPJasperXML 0.9d here.

You can view a sample report Here

You can access more information at this wiki.

We doesn't provide technical support via email, you can post enquiry or ask help from facebook.

 

[Project Leader:]
Ks Tan
Sim IT Sdn Bhd
kstan@simitgroup.com


[Why we want to create report in PDF]

  1. Web based programming need a standard layout out report, which is fixed and printer friendly. Using traditional HTML method is really hard to design multipage, beautiful and cross platform report.
  2. PDF is industry standard, the font, layout, margin is fixed. No matter at server side, client side and printer it display same result.
  3. PDF working well in all platform
  4. PDF support hyperlink, image, encryption and etc function.
  5. PDF is well known in market, most of the software already pre-install PDF viewer.
  6. PDF support multi-language.

[Installation]

  1. Download and extract this project into you website root directory (I assume /var/www/PHPJasperXML)
  2. Import sampledb.sql into mysql database, in this project we assume your username=root, password=mysql, database = phpjasperxml. If you use difference user/password/database, you shall change setting in sample1.php and sample2.php.
  3. With your favorite web browser, browse into http://localhost/PHPJasperXML/index.php, test report you like.
  4. Finish.

 

[How to Use This Class]

  1. You can use iReport to edit the sample1.jrxml, sample jrxml and see the effect from web browser.
  2. You can use any text editor to edit sample1.php and sample2.php, you will found that integrate the report into your project is like peanut.

 

[Join Development]

  1. Currently there is no any external programmer join into this project yet. If you feel interested into this project and willing to give your hand, simply create a topic in this forum: http://www.extraknowledge.org/forum/. Please take note this project use FPDF heavily.

[How To Edit The Report]

  1. Download iReport
  2. Use iReport to open sample1.jrxml, sample2.jrxml, sample3.jrxml.
  3. Perform changes and preview the report in iReport.
  4. Preview the report at http://localhost/PHPJasperXML/sample<N>.php

[Develop your own report]

  1. Copy PHPJasperXML/class/PHPJasperXML.php into your project folder
  2. Download iReport designer, design your report with iReport
  3. Copy PHPJasperXML/sample1.php into your project folder, rename it to <yourfile>.php.
  4. Edit <yourfile>.php, change the content inside to suit your requirement

[Online Demo]

Click online demo to see the sample output


[Wiki]

Here is a simple Wiki which is still under development.

PHP JasperXML Wiki


[Finally]

This project is contribute by Sim IT Sdn Bhd, currently there is no commercial support yet. However for those company feel interest to establish long term relationship with SIm IT Sdn Bhd can visit our company website (Sim IT Sdn Bhd) and call our representative.

 

You can get iReport from below link:

https://sourceforge.net/projects/ireport/files/