1. Go to this page and download the library: Download julfiker/php-jaspersoft library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
julfiker / php-jaspersoft example snippets
/**
* From controller action
*
* @param $path
* @param string $type pdf|xlsx|docx
* @param string $name name of the report
* @param array $params its optional, parameter of report in array if
Route::get('/testing', function (Redirect $redirect) {
return render_report('{REPORT_PATH}', 'pdf', 'name_of_the_report');
});