PHPackages                             deifhelt/laravel-reports - 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. [Framework](/categories/framework)
4. /
5. deifhelt/laravel-reports

ActiveLibrary[Framework](/categories/framework)

deifhelt/laravel-reports
========================

Reports for Laravel.

v1.1.0(1mo ago)017[2 PRs](https://github.com/StevenU21/laravel-reports/pulls)MITPHPPHP ^8.2CI passing

Since Jan 28Pushed 1mo agoCompare

[ Source](https://github.com/StevenU21/laravel-reports)[ Packagist](https://packagist.org/packages/deifhelt/laravel-reports)[ GitHub Sponsors]()[ RSS](/packages/deifhelt-laravel-reports/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (30)Versions (5)Used By (0)

Laravel Reports
===============

[](#laravel-reports)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e5d803873a40dd47db25fc51875e87530ed031d4a1f11a6ceb8e4bde0ff1a494/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465696668656c742f6c61726176656c2d7265706f7274732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deifhelt/laravel-reports)[![Total Downloads](https://camo.githubusercontent.com/144b8e13e0e8fd8a316360b0496841f1c306729d35a7094fbb73ae42fc344300/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465696668656c742f6c61726176656c2d7265706f7274732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deifhelt/laravel-reports)[![License](https://camo.githubusercontent.com/6fe9c29ef87e02a410326f84ea9fcb7e96c1493d3237f49de9ad4eb46b26595c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465696668656c742f6c61726176656c2d7265706f7274732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deifhelt/laravel-reports)

Overview
--------

[](#overview)

Laravel Reports is a small, opinionated wrapper around `barryvdh/laravel-dompdf` that helps you generate PDFs using a consistent report class pattern.

Instead of scattering PDF logic across controllers/routes, you define a report once (query + view + filename) and let the package handle rendering and response mode.

What it provides
----------------

[](#what-it-provides)

- **Report definitions** via `ReportDefinition` (query + view + filename)
- **Single entrypoint** via `LaravelReports::process()`
- **Automatic response mode**:
    - `?preview=1` or `?stream=1` streams in the browser
    - no flag downloads the PDF
- **Optional dataset limit validation** to protect against huge exports
- **Safe view variables** (`filters` are query-string only)
- **Pluggable renderer** via `PdfRenderer` (DomPDF by default)
- **Optional NativePHP preview helper** (`PreviewWindowReportManager`) for open window then stream PDF flows

Installation
------------

[](#installation)

```
composer require deifhelt/laravel-reports
```

Publish the configuration:

```
php artisan vendor:publish --tag="laravel-reports-config"
```

DomPDF settings (fonts, remote assets, security, etc.) are configured in your app via `config/dompdf.php`.

Public API (most used)
----------------------

[](#public-api-most-used)

- `LaravelReports::process($report, $request, $title = 'Report')`
- `LaravelReports::stream($report, $request)`
- `LaravelReports::download($report, $request)`

Documentation
-------------

[](#documentation)

- [Requirements](docs/requirements.md)
- [Installation](docs/installation.md)
- [Configuration](docs/configuration.md)
- [Usage (index)](docs/usage.md)

Notes
-----

[](#notes)

- This package ships with an example migration stub via package tools; PDF rendering does not require a database table.

Credits
-------

[](#credits)

- [Deifhelt Ulloa](https://github.com/deifhelt)
- [All Contributors](../../contributors)

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](LICENSE.md).

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance91

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~52 days

Total

2

Last Release

51d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1102199f2512f0899214ab072484185b6499dd1bf518e63a7e9403fe89afa135?d=identicon)[StevenU21](/maintainers/StevenU21)

---

Top Contributors

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

---

Tags

frameworklaravelmanagerreports

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/deifhelt-laravel-reports/health.svg)

```
[![Health](https://phpackages.com/badges/deifhelt-laravel-reports/health.svg)](https://phpackages.com/packages/deifhelt-laravel-reports)
```

###  Alternatives

[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.3k7.1M64](/packages/graham-campbell-markdown)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[htmlmin/htmlmin

HTMLMin Is A Simple HTML Minifier For Laravel 5

1.0k1.9M9](/packages/htmlmin-htmlmin)

PHPackages © 2026

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