This is a Laravel package integrating the Jasper Server REST v2 client (Jaspersoft/rest-client).
Inspired from JasperReportBundle
To use this package, you will need:
- JasperReports Server (version >= 5.2)
- PHP (version >= 5.3, with cURL extension)
You can install the package via composer:
composer require gaiththewolf/jasper-report-client
The package will automatically register itself.
You can publish the config with:
php artisan vendor:publish --provider="Gaiththewolf\JasperReportClient\JasperReportClientServiceProvider" --tag="config"
JRS_BASE_URL="http://127.0.0.1:8080/jasperserver"
JRS_USERNAME="jasperadmin"
JRS_PASSWORD="jasperadmin"
JRS_ORG_ID=null
use JSRClient;
class TestController extends Controller {
public function generate_report() {
$format = "html";
$reportUnit = "/reports/my_report_liste";
$params = array(
"inputControl1" => "value 1",
"inputControl2" => "value 2",
"inputControl3" => "value 3",
);
$res = JSRClient::generate($reportUnit, $params, $format);
return $res;
}
}
- html
- xml
- pdf
- xlsx
- xls
- rtf
- csv
- odt
- docx
- ods
- pptx
use JSRClient;
class TestController extends Controller {
public function get_inputControls_report() {
$reportUnit = "/reports/my_report_liste";
$res = JSRClient::getReportInputControls($reportUnit);
dd($res);
}
}
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email gaiththewolf@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.