anshul-netgen / jasper-report
Dynamically create Reports using jrxml file and Laravel.
dev-master
2022-11-26 11:49 UTC
Requires
- geekcom/phpjasper: dev-master
Requires (Dev)
- geekcom/phpjasper: dev-master
This package is auto-updated.
Last update: 2025-03-26 17:05:42 UTC
README
Dynamically create Reports using jrxml file and Laravel.
Installation
To install dynamic jasper reports:
composer require anshul-netgen/jasper-report
Add Service Provider in app.php
AnshulNetgen\JasperReport\JasperReportServiceProvider::class
Publish config
php artisan vendor:publish
Add symblink to storage
php artisan storage:link
Usage
Using Api:
<?php
use AnshulNetgen\JasperReport\Helpers\JasperReport;
return JasperReport::make('pdf', 'http://localhost:8001/api/users');
Using JSON:
<?php
use AnshulNetgen\JasperReport\Helpers\JasperReport;
return JasperReport::makeFromJson('pdf', $json);
This Library is using https://github.com/PHPJasper/phpjasper