If you test the REST PHP client on Github or add it to your PHP project through Composer, you can run the report through web services.
Your code should look something like this:
<?php $c = new \Jaspersoft\Client\Client( "http://localhost:8080/jasperserver-pro", "jasperadmin", "jasperadmin", "organization_1" ); $report = $c->reportService()->runReport('/reports/samples/AllAccounts', 'html'); echo $report; ?>
This will get the report in HTML format and save it in $report . Of course, you can change html to pdf or xls or any other format you want to export.
If you want to display PDF files or offer them for download, you will need to provide the binary data in some kind of package that can process it, or provide the proper headers to load the web browser.
I happen to be the one who develops this package, so feel free to take pictures of me with any questions.
source share