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.2(1mo ago)041[1 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 1w ago

READMEChangelog (3)Dependencies (60)Versions (9)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

43

—

FairBetter than 89% of packages

Maintenance92

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.5% 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 ~41 days

Total

5

Last Release

37d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/89059916?v=4)[Deifhelt Steven Ulloa](/maintainers/StevenU21)[@StevenU21](https://github.com/StevenU21)

---

Top Contributors

[![StevenU21](https://avatars.githubusercontent.com/u/89059916?v=4)](https://github.com/StevenU21 "StevenU21 (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 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

[laravel/sail

Docker files for running a basic Laravel application.

1.9k212.4M1.5k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M319](/packages/laravel-ai)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[nativephp/mobile

NativePHP for Mobile

1.1k102.1k146](/packages/nativephp-mobile)

PHPackages © 2026

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