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(3mo ago)020[2 PRs](https://github.com/StevenU21/laravel-reports/pulls)MITPHPPHP ^8.2CI passing

Since Jan 28Pushed 2mo 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 today

READMEChangelog (2)Dependencies (30)Versions (6)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

39

—

LowBetter than 84% of packages

Maintenance83

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

104d 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 (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

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)

PHPackages © 2026

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