To install dynamic jasper reports:
composer require anshul-netgen/jasper-report
AnshulNetgen\JasperReport\JasperReportServiceProvider::class
php artisan vendor:publish
php artisan storage:link
<?php
use AnshulNetgen\JasperReport\Helpers\JasperReport;
return JasperReport::make('pdf', 'http://localhost:8001/api/users');
<?php
use AnshulNetgen\JasperReport\Helpers\JasperReport;
return JasperReport::makeFromJson('pdf', $json);
This Library is using https://github.com/PHPJasper/phpjasper