PHPackages                             polarbear/phpjasper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. polarbear/phpjasper

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

polarbear/phpjasper
===================

JasperReports integration with JavaBridge

v2.1.0(5y ago)02.8k1[3 PRs](https://github.com/alaczi/phpjasper/pulls)GPL-2.0-or-laterPHPPHP &gt;=8.0

Since Sep 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/alaczi/phpjasper)[ Packagist](https://packagist.org/packages/polarbear/phpjasper)[ Docs](https://github.com/polarbearhandler/phpjasper)[ RSS](/packages/polarbear-phpjasper/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (8)Used By (0)

PHP - JasperReports integration with JavaBridge
===============================================

[](#php---jasperreports-integration-with-javabridge)

[![Build Status](https://camo.githubusercontent.com/ed09740b6ebdf9614abb90b119e4854c924eb4c937aee9288c797a535be1ca84/68747470733a2f2f7472617669732d63692e636f6d2f616c61637a692f7068706a61737065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/alaczi/phpjasper)[![Coverage Status](https://camo.githubusercontent.com/12fc2c4f2db431acb0475dfefe0d8dd07152b1a40ebf8dc01fe00461aab0de91/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f616c61637a692f7068706a61737065722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/alaczi/phpjasper?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/bada94fd8d6457d1125766840b95ae50d8ef36cdc0c3a4878e854e05577987e2/687474703a2f2f706f7365722e707567782e6f72672f706f6c6172626561722f7068706a61737065722f76)](https://packagist.org/packages/polarbear/phpjasper)[![Total Downloads](https://camo.githubusercontent.com/cee7635468d5b536aeb667e49380b7e160df5249ca6f13764d5cdcc1b7a59a25/687474703a2f2f706f7365722e707567782e6f72672f706f6c6172626561722f7068706a61737065722f646f776e6c6f616473)](https://packagist.org/packages/polarbear/phpjasper)[![Latest Unstable Version](https://camo.githubusercontent.com/67238fcc6cd2720bdffa5bfdf940ce7988fd6ee339ccf643d29dff2176ec70f1/687474703a2f2f706f7365722e707567782e6f72672f706f6c6172626561722f7068706a61737065722f762f756e737461626c65)](https://packagist.org/packages/polarbear/phpjasper)[![License](https://camo.githubusercontent.com/dee0e876841947c1cddfb48de67cb7ce457ed216d1603a6589b4091194618ed3/687474703a2f2f706f7365722e707567782e6f72672f706f6c6172626561722f7068706a61737065722f6c6963656e7365)](https://packagist.org/packages/polarbear/phpjasper)

This component is to run JasperReports reports in PHP with using JavaBridge.

Why?
----

[](#why)

JasperReports is a great tool to generate reports with different output formats (for example: PDF, DOC, XLS), and it comes with a wysiwyg editor, JasperSoft Studio.

Requirements
------------

[](#requirements)

To get this work, you have to install JavaBridge and add required .jars from JasperReports.

- JavaBridge:
- JasperReports:
- JasperSoft Studio:

There is a script in the Resources/script dir to easily start the standalone JavaBridge server with the jar files included in the classpath

Install
-------

[](#install)

Clone the project

```
    git clone https://github.com/polarbearhandler/phpjasper.git
```

Using composer

```
    composer require polarbear/phpjasper
```

For JavaBridge include you should set `allow_url_include` to `On` in php.ini

Limitations
-----------

[](#limitations)

Currently, the JavaBridge should run on the same machine. It's recommended to run the JavaBridge with the same user as your webserver (www-data)

This library was tested with JasperReports 6.17.0

Test and usage
--------------

[](#test-and-usage)

Just run the tests Check the test suite for an example how to pass datasource/parameters to the report

```
    phpunit src/
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1240 days

Total

3

Last Release

1831d ago

Major Versions

v1.0.0 → v2.0.02021-06-17

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v2.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3229101?v=4)[Andras Laczi](/maintainers/alaczi)[@alaczi](https://github.com/alaczi)

---

Top Contributors

[![alaczi](https://avatars.githubusercontent.com/u/3229101?v=4)](https://github.com/alaczi "alaczi (4 commits)")

---

Tags

libraryreportjasperreportsJavaBridge

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/polarbear-phpjasper/health.svg)

```
[![Health](https://phpackages.com/badges/polarbear-phpjasper/health.svg)](https://phpackages.com/packages/polarbear-phpjasper)
```

###  Alternatives

[mk-j/php_xlsxwriter

PHP Library to write XLSX files

1.9k8.7M31](/packages/mk-j-php-xlsxwriter)[avadim/fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP

3051.4M11](/packages/avadim-fast-excel-writer)[jimmyjs/laravel-report-generator

Rapidly Generate Simple Pdf &amp; Excel Report on Laravel 5 (Using Barryvdh/DomPdf or Barryvdh/laravel-snappy &amp; maatwebsite/excel)

580165.5k1](/packages/jimmyjs-laravel-report-generator)[avadim/fast-excel-reader

Lightweight and very fast XLSX Excel Spreadsheet and CSV Reader in PHP

107737.8k11](/packages/avadim-fast-excel-reader)[scheb/tombstone-analyzer

Generates reports based on the logs from scheb/tombstone-logger

28423.5k3](/packages/scheb-tombstone-analyzer)[quilhasoft/jasperphp

Pure PHP library to read JRXML files made with 'JasperSoft Studio' and generate reports in PDF

7643.9k1](/packages/quilhasoft-jasperphp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
