Download the PHP package hboie/jasper-report-bundle without Composer
On this page you can find all versions of the php package hboie/jasper-report-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hboie/jasper-report-bundle
More information about hboie/jasper-report-bundle
Files in hboie/jasper-report-bundle
Package jasper-report-bundle
Short Description Symfony 2-5 / Symfony Flex Bundle integrating the Jaspersoft REST v2 client (jaspersoft/rest-client)
License MIT
Homepage https://github.com/hboie/JasperReportBundle
Informations about the package jasper-report-bundle
JasperReportBundle
The JasperReportBundle requires jaspersoft/rest-client and provides an JasperReport-Client as service in the Symfony service container.
Installation with Symfony Flex (4 / 5)
Basic Usage in Symfony 4 / 5
Installation with Symfony 2 / 3
Basic Usage in Symfony 2 / 3
Search Resource Command
Export Resource Command
Import Resource Command
Copying Resources between different Servers
Additional Configuration Options
Installation with Symfony Flex (4 / 5)
1 Add bundle to composer.json
:
2 The Bundle will be registred automatically and by executing the recipe the configuration
file jasper-report.yaml
will be created in the config/packages
directory and the corresponding entries
in the .env
file will be made
3 Change the standard setting in the file jasper-report.yaml
and in the .env
file
Basic Usage in Symfony 4 / 5
The bundle supports autowiring, so you can access the report-service directly in your controller, e.g.
Installation with Symfony 2 / 3
1 Add bundle to composer.json
:
2 Register bundle in app/AppKernel.php
:
3 Add parameter to app/config/config.yml
4 Add a dummy configuration in app/config/paramters.yml.dist
5 Add your own configuration in app/config/paramters.yml
Basic Usage in Symfony 2 / 3
You can now access the Client
object via the Symfony service jasperreport.client
:
or directly access the ReportService
using the Symfony service jasperreport.reportservice
:
So a controller giving back a pdf-report would look like
Search Resource Command
With the jasper:repository:search
you can search resources on the JaserReport server
Criteria: search criteria
Detail: show details (optional)
If no detail-value is given, only the uri of the resources will be listed. If an detail value greater
than 0 is given, full data will be displayed.
Export Resource Command
With the jasper:export:resource
command, a given resource will be exported
from the JasperServer and downloaded to an zip-archive file.
UriOfResource: uri of the resouce that should be downloaded
Filename: filename of the local target file
SkipDependentResources: if set to "true", dependent resource, e.g. the database
connection of a report will be skipped.
Import Resource Command
With the jasper:import:resource
command, a previously exported resource
can be imported to a JasperServer.
Filename: filename of the local import file
IncludebrokenDependencies: if set to "true", for resources with broken dependencies
(e.g. exported with the option SkipDependentResources
) the import process
attempts to import the resource by resolving dependencies with local resources.
Copying Resources between different Servers
You can use the export and import resources commands to copy resources from
one server to another, e.g. between different stages of
an application. Use the SkipDependentResources
option when exporting a
resource and the IncludebrokenDependencies
option when importing it
on the second server to avoid that the database connection is overwritten on
the target server.
Take care that the export and import keys on both servers are adjusted. Read https://community.jaspersoft.com/documentation/tibco-jasperreports-server-security-guide/v7/using-custom-keys for further information on how to use customs keys.
Create key store
Copy store to JasperServer's buildomatic directory
Go to the buildomatic directory as root user and import key to JasperServer
Restart the JasperServer application or reboot the server
Additional Configuration Options
timeout: timeout for REST-request (in seconds)
All versions of jasper-report-bundle with dependencies
ext-zip Version *
symfony/framework-bundle Version ~2.6|~3.0|~4.0|~5.0
symfony/filesystem Version >=2.6
hboie/jasper-rest-client Version *