Download the PHP package stesa/phpjasper without Composer

On this page you can find all versions of the php package stesa/phpjasper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpjasper

PHPJasper

Latest Stable Version Total Downloads License

A Laravel package for generating reports with JasperReports using the latest version of JasperStarter. Generate beautiful PDF, Excel, CSV, HTML, and other format reports from your Laravel application with ease.

Features

Requirements

Installation

1. Install via Composer

2. Publish Configuration (Optional)

This will create config/phpjasper.php for customization.

3. Publish Example Templates (Optional)

4. Verify Java Installation

Make sure Java is installed and accessible:

You should see Java 24 or higher.

Quick Start

Basic Usage

Using in Controller

API Reference

Compile

Compile a JRXML template to JASPER format:

Parameters:

Example:

Process

Generate a report from a JASPER or JRXML file:

Parameters:

Options:

Example:

List Parameters

List all parameters in a JASPER report:

Example:

Multiple Output Formats

Generate reports in multiple formats simultaneously:

Database Connections

Using Default Laravel Database

Using PostgreSQL

Report Parameters

Pass parameters to your reports:

In your JRXML, reference parameters like:

Configuration

The package can be configured via config/phpjasper.php:

Environment Variables

Add to your .env file:

Using Multiple Java Versions

If you have multiple Java versions installed, you can specify which one to use:

Via Configuration:

Via Environment Variable:

Programmatically:

Supported Formats

Check supported formats:

Barcode Support

This package includes full barcode support through Barcode4J integration:

Supported Barcode Types:

Example JRXML Barcode Component:

Directory Structure

Recommended directory structure for reports:

Create directories:

Error Handling

The package throws exceptions with detailed error messages:

Advanced Usage

Get Command Without Executing

Custom JAR Path

Using Dependency Injection

Troubleshooting

Java Not Found

Error: java: command not found

Solution: Install Java JRE 24 or higher and ensure it's in your system PATH.

JAR File Not Found

Error: JasperStarter JAR not found

Solution: The JAR file should be automatically included in the vendor directory. If missing, check your composer installation or manually specify the path in config.

Database Connection Failed

Error: Database connection error

Solution:

Compilation Errors

Error: Unable to load report

Solution:

Creating Reports

Using JasperSoft Studio

  1. Download JasperSoft Studio 6.20.x or earlier
  2. Create a new report or open existing .jrxml template
  3. Design your report with fields, parameters, and formatting
  4. Save the .jrxml file to your templates directory
  5. Use PHPJasper to compile and generate reports

Report Design Tips

Performance Tips

  1. Pre-compile templates: Compile .jrxml to .jasper during deployment
  2. Use queued jobs: For large reports, use Laravel queues to avoid timeouts
  3. Clean up old reports: Regularly delete old files from output directory
  4. Cache compiled reports: Store compiled .jasper files for reuse
  5. Optimize queries: Ensure database queries in reports are optimized

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Credits

License

This package is open-sourced software licensed under the MIT license.

Support

If you encounter any issues or have questions:

Changelog

See CHANGELOG.md for version history and changes.


All versions of phpjasper with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0|^8.1|^8.2|^8.3|^8.4
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/console Version ^9.0|^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package stesa/phpjasper contains the following files

Loading the files please wait ...