PHPackages                             julfiker/php-jaspersoft - 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. julfiker/php-jaspersoft

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

julfiker/php-jaspersoft
=======================

Jasper report base on jaspersoft rest server in to the Laravel or any other php based application.

v1.1(3y ago)86995[1 PRs](https://github.com/julfiker/php_jaspersoft/pulls)MITPHPPHP &gt;=7.2

Since Apr 10Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/julfiker/php_jaspersoft)[ Packagist](https://packagist.org/packages/julfiker/php-jaspersoft)[ RSS](/packages/julfiker-php-jaspersoft/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Integation jaspersoft REST API to php application to manage report in all format as jasper provided like pdf, docx and xlsx etc. I tried to make it easier to integration with jasper soft.

Install it to the application through composer
----------------------------------------------

[](#install-it-to-the-application-through-composer)

`composer require julfiker/php-jaspersoft`

### Laravel specific configuration

[](#laravel-specific-configuration)

**1. First add service provider as below in to the config/app**
`Julfiker\Jasper\JasperReportServiceProvider::class,`

**2. To publish the config**
`php artisan vendor:publish --provider="Julfiker\Jasper\JasperReportServiceProvider"`

**3. Add following and configure jasper server credential in to the .env**

```
#### Jasper server credential configuration #######
JASPER_SERVER_URL=http://127.0.0.1:8888/jasperserver
JASPER_SERVER_USERNAME=jasperadmin
JASPER_SERVER_PASSWORD=jasperadmin
JASPER_SERVER_REQUEST_TIMEOUT=30
```

### Instruction to use in to the Laravel

[](#instruction-to-use-in-to-the-laravel)

**1. Using Helper function**

```
/**
* From controller action
*
* @param $path
* @param string $type  pdf|xlsx|docx
* @param string $name name of the report
* @param array $params its optional, parameter of report in array if required.
*/
return render_report('{JASPER_REPORT_PATH}', 'pdf', "report_name", ["param" => 123]);

```

If you want to call from route define just follow as below

```
Route::get('/testing', function (Redirect $redirect) {
    return render_report('{REPORT_PATH}', 'pdf', 'name_of_the_report');
});
```

**2. Using to generate route and make a link to render a report**

```
echo route('julfiker.jasper.report.render', ['path' => "{report_path}", 'type' => 'pdf', "name" => "{name_of_report}", "param" => 1]);
```

**3. Blade template**

```
Report
OR
Report
```

### Instruction to use it in other php based application

[](#instruction-to-use-it-in-other-php-based-application)

```
use Julfiker\Jasper\Manager\JasperReport;

$jasper =  new JasperReport();
$jasper->setServerUrl('jasper_server_url')
       ->setUsername('jasper_user')
       ->setPassword('jasper_password')
       ->make();

try {
    $reportContent = $jasper
        ->setPath("{JASPER_REPORT_PATH}")
        ->setType("pdf")
        ->setParams(["param1"=> 1, "param2" => 2])
        ->setRequestTimeout(30)  #30 seconds
        ->generate();

   //If pdf render
   echo $reportContent;
   header('Content-Type: pdf');
   header('Content-Disposition: inline; filename=report.pdf');
   exit;

   //if download in excel file with xlsx
    echo $reportContent;
    header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
    header('Content-Disposition: attachment; filename==report.xlsx');
    exit;

    //Note: If you response header framework specific where you are working on.
}
catch (\Exception $e) {
    echo $e->getMessage();
}
```

### Any Help?

[](#any-help)

You can contact me through following access
email: **
skype: *eng.jewel*
whatsapp: 01817108853

### You are welcome to contribute on it further improvement/update or extended usability for all. Just make a pull request.

[](#you-are-welcome-to-contribute-on-it-further-improvementupdate-or-extended-usability-for-all-just-make-a-pull-request)

Thank you

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance55

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.3% 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 ~15 days

Total

2

Last Release

1156d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2891c7040783336013e794b238f2389a61973e26002105f438ec1d74188601d?d=identicon)[julfiker](/maintainers/julfiker)

---

Top Contributors

[![julfiker](https://avatars.githubusercontent.com/u/3142932?v=4)](https://github.com/julfiker "julfiker (28 commits)")[![Sujon94](https://avatars.githubusercontent.com/u/11589260?v=4)](https://github.com/Sujon94 "Sujon94 (3 commits)")

---

Tags

excelexcel-exportjasperjasperreportsjasperrestapijaspersoft-studiolaravelopen-sourcepdfphp

### Embed Badge

![Health badge](/badges/julfiker-php-jaspersoft/health.svg)

```
[![Health](https://phpackages.com/badges/julfiker-php-jaspersoft/health.svg)](https://phpackages.com/packages/julfiker-php-jaspersoft)
```

###  Alternatives

[42coders/document-templates

Document template management package.

19940.0k](/packages/42coders-document-templates)[qipsius/tcpdf-bundle

A bundle to easily integrate TCPDF into Symfony

23749.5k](/packages/qipsius-tcpdf-bundle)[macopedia/magmi2

Magento Mass Importer 'Magmi' for Magento 2

11615.7k](/packages/macopedia-magmi2)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.4k](/packages/tarfin-labs-easy-pdf)[ikkez/f3-sheet

Some Excel and CSV utilities for PHP Fat-Free Framework

1414.8k](/packages/ikkez-f3-sheet)[nilgems/laravel-textract

A Laravel package to extract text from files like DOC, XL, Image, Pdf and more. I've developed this package by inspiring "npm textract".

195.7k](/packages/nilgems-laravel-textract)

PHPackages © 2026

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