PHPackages                             mesd/jasper-report-viewer-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mesd/jasper-report-viewer-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

mesd/jasper-report-viewer-bundle
================================

Adds a viewer element to work with the mesd/jasper-report-bundle

v1.0.8(10y ago)03.3k[2 issues](https://github.com/MESD/JasperReportViewerBundle/issues)MITPHP

Since May 31Pushed 8y ago14 watchersCompare

[ Source](https://github.com/MESD/JasperReportViewerBundle)[ Packagist](https://packagist.org/packages/mesd/jasper-report-viewer-bundle)[ RSS](/packages/mesd-jasper-report-viewer-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (15)Used By (0)

Overview
========

[](#overview)

The report viewer serves as an additional layer on top of the Jasper Report Bundle and provides a visual interface for displaying and running reports, and viewing report history. It requires the Jasper Report Bundle in order to work.

\###Features

- Provides a list of all reports a user can view
- Provides an interface to handle report input
- Displays reports and ajax loads their pages
- UI for report history

\###Todo

- Currently relies on a cdn for third party css and javascript, needs to be better integrated into the bundle
- Tests are seriously needed

Installation
============

[](#installation)

\###Install Report Bundle The report viewer bundle requires the report bundle to have been set up in order to work. If the report bundle is not yet installed, go [here](https://github.com/MESD/JasperReportBundle)

\###Add to Composer The first step is to add the bundle to the composer.json of the application.

```
"require": {
    "mesd/jasper-report-viewer-bundle": "~1.0"
}
```

\###Add to the AppKernel In order for the application to load the bundle, it needs to be registered in the AppKernel.

```
public function registerBundles() {
    $bundles = array(
        ...
        new Mesd\Jasper\ReportViewerBundle\MesdJasperReportViewerBundle(),
    )
}
```

\###Add To Assetic To have assets work, the bundle has to be registered with assetic. This is done in the config file where the rest of assetic is setup. Example:

```
assetic:
    ...
    bundles:
        - MesdJasperReportViewerBundle
```

\###Import the Routing File The final step is to include the report viewer's routing file in the main application's routing file. Look at the example below:

```
MESDJasperReportViewerBundle:
    resource: "@MesdJasperReportViewerBundle/Resources/config/routing.yml"
    prefix: /reportviewer
```

Usage
=====

[](#usage)

To add links to the report home and report viewer use the following twig functions

```
{# report home link #}
{{ mesd_jasper_reportviewer_home('Link Text') }}

{# report viewer link #}
{{ mesd_jasper_reportviewer_report_link('/reports/uri_of_report', 'Link Text') }}

{# stored report link #}
{{ mesd_jasper_reportviewer_stored_report_link('/reports/uri_of_report', 'requestId', 'Link Text') }}
```

These routes may also be used in controllers:

```
    public function indexAction( Request $request ) {
        $sc = $this->get('security.context');
        if ( $sc->isGranted('ROLE_REPORT') ) {
            return $this->redirect($this->generateUrl('MesdJasperReportViewerBundle_home'));
        }
    }
```

or:

```
    public function indexAction( Request $request ) {
        $sc = $this->get('security.context');
        if ( $sc->isGranted('ROLE_REPORT') ) {
            return $this->redirect(
                $this->generateUrl(
                    'MesdJasperReportViewerBundle_home',
                    array( 'openInNewTab' => true )
                )
            );
    }
```

A further look at each function:

- mesd\_jasper\_reportviewer\_home(linkText, classes = ' ', openInNewTab = true)
    - linkText =&gt; The text to display on the link
    - classes =&gt; classes to apply to the anchor tag
    - openInNewTab =&gt; whether to open the link in a new tab/window or not
- mesd\_jasper\_reportviewer\_report\_link(reportUri, linkText, classes = ' ', openInNewTab = true, hideHome = true)
    - reportUri =&gt; The uri of the report to open the report viewer to on the Jasper Server
    - linkText =&gt; The text display on the link
    - classes =&gt; classes to apply to the anchor tag
    - openInNewTab =&gt; whether to open the link in a new tab/window or not
    - hideHome =&gt; Whether to display navbar links to home and history
- mesd\_jasper\_reportviewer\_stored\_report\_link(reportUri, requestId, linkText, classes = ' ', openInNewTab = true, hideHome = true)
    - reportUri =&gt; The uri of the report to open the report viewer to on the Jasper Server
    - requestId =&gt; The request Id of the stored report
    - linkText =&gt; The text display on the link
    - classes =&gt; classes to apply to the anchor tag
    - openInNewTab =&gt; whether to open the link in a new tab/window or not
    - hideHome =&gt; Whether to display navbar links to home and history

API Documentation
=================

[](#api-documentation)

Generated documentation exists in the bundle under the docs directory.

License
=======

[](#license)

This project is licensed under the MIT license. See the [LICENSE.md](LICENSE.md) file for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 72% 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 ~57 days

Recently: every ~102 days

Total

13

Last Release

3670d ago

Major Versions

0.9 → 1.0.0-alpha-0012014-07-10

v1.0.8 → 2.0.x-dev2016-04-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb7afaee40f028c6fa0c565326613372402a75d642338f4c37c8f297e61430fc?d=identicon)[appdev@mesd.k12.or.us](/maintainers/appdev@mesd.k12.or.us)

---

Top Contributors

[![tyhand](https://avatars.githubusercontent.com/u/4419522?v=4)](https://github.com/tyhand "tyhand (36 commits)")[![lighthart](https://avatars.githubusercontent.com/u/2159790?v=4)](https://github.com/lighthart "lighthart (13 commits)")[![oforralmesdk12orus](https://avatars.githubusercontent.com/u/2159761?v=4)](https://github.com/oforralmesdk12orus "oforralmesdk12orus (1 commits)")

### Embed Badge

![Health badge](/badges/mesd-jasper-report-viewer-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mesd-jasper-report-viewer-bundle/health.svg)](https://phpackages.com/packages/mesd-jasper-report-viewer-bundle)
```

###  Alternatives

[geokit/geokit

Geo-Toolkit for PHP

251924.7k6](/packages/geokit-geokit)[arielmejiadev/larapex-charts

Package to provide easy api to build apex charts on Laravel

302445.7k](/packages/arielmejiadev-larapex-charts)[geshi/geshi

Generic Syntax Highlighter

1741.1M13](/packages/geshi-geshi)[statikbe/laravel-cookie-consent

Cookie consent modal for EU

213396.7k](/packages/statikbe-laravel-cookie-consent)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[afragen/wp-dependency-installer

Library that helps WordPress plugin dependency management.

217111.4k](/packages/afragen-wp-dependency-installer)

PHPackages © 2026

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