PHPackages                             mortezamasumi/fb-report - 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. mortezamasumi/fb-report

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

mortezamasumi/fb-report
=======================

Generate PDF reports using mPDF for Filament.

v5.1.0(2w ago)02231MITPHPPHP ^8.3CI passing

Since Aug 9Pushed 2w agoCompare

[ Source](https://github.com/mortezamasumi/fb-report)[ Packagist](https://packagist.org/packages/mortezamasumi/fb-report)[ Docs](https://github.com/mortezamasumi/fb-report)[ RSS](/packages/mortezamasumi-fb-report/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (53)Versions (58)Used By (1)

fb-report
=========

[](#fb-report)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e88aa564a6ea246ee2f1d3ea5a2b4277a59d70c11c5a7c25837cd3d755556724/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f7274657a616d6173756d692f66622d7265706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mortezamasumi/fb-report)[![CI Tests](https://github.com/mortezamasumi/fb-report/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/mortezamasumi/fb-report/actions/workflows/ci.yml)[![Total Downloads](https://camo.githubusercontent.com/f78693d620551fa4b84af0e288f6724a99babd567b5160b2e56a8b401d071216/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f7274657a616d6173756d692f66622d7265706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mortezamasumi/fb-report)[![License](https://camo.githubusercontent.com/88fce7517ba53ac79adee5a8eb186168d4e7281365d5805841db610cde845a7b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6f7274657a616d6173756d692f66622d7265706f72742e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Generate PDF reports using mPDF for Filament tables and bulk actions.

Features
--------

[](#features)

- Generate PDF reports from Filament table data with a single `->reporter()` call.
- Support for grouped and sub-grouped data across multiple pages.
- Persian/Arabic font support out of the box with 24 bundled fonts.
- Configurable page format, orientation, margins, and PDF protection password.
- Column formatting helpers for Jalali dates and locale-aware digits.

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

[](#installation)

```
composer require mortezamasumi/fb-report
```

Configuration
-------------

[](#configuration)

You can publish the config file with:

```
php artisan vendor:publish --tag="fb-report-config"
```

The published `config/fb-report.php` lets you set the default PDF password, font directory, and bundled font definitions.

Usage
-----

[](#usage)

Create a reporter class extending `Reporter` and implement `getColumns()`, `getGroupItems()`, and `getTableRowsData()`:

```
use Mortezamasumi\FbReport\Reports\Reporter;

class StudentRegisterFormReporter extends Reporter
{
    public function getConfig(): array
    {
        return [
            'margin_top' => 0,
            'margin_right' => 5,
            'margin_left' => 5,
            'margin_bottom' => 0,
        ];
    }

    protected function getGroupItems(): ?Collection
    {
        return $this->getRecords();
    }

    public function getTableRowsData(): Collection
    {
        return $this->getRecords();
    }
}
```

Then attach it to a Filament table or bulk action:

```
Table::make()
    ->reporter(StudentRegisterFormReporter::class)
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](.github/SECURITY.md) on how to report security vulnerabilities.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance97

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~11 days

Total

57

Last Release

15d ago

Major Versions

v1.0.0 → v2.0.02025-08-09

v2.0.0 → v3.0.02025-08-09

v3.0.0 → v4.0.02025-08-09

v4.10.7 → v5.0.02026-07-09

PHP version history (2 changes)v1.0.0PHP ^8.2

v4.1.3PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/41052038?v=4)[M.M](/maintainers/mortezamasumi)[@mortezamasumi](https://github.com/mortezamasumi)

---

Top Contributors

[![mortezamasumi](https://avatars.githubusercontent.com/u/41052038?v=4)](https://github.com/mortezamasumi "mortezamasumi (67 commits)")

---

Tags

laravelpdfmpdffilamentmortezamasumifb-report

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mortezamasumi-fb-report/health.svg)

```
[![Health](https://phpackages.com/badges/mortezamasumi-fb-report/health.svg)](https://phpackages.com/packages/mortezamasumi-fb-report)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)[backstage/mails

View logged mails and events in a beautiful Filament UI.

16429.7k](/packages/backstage-mails)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

85240.3k9](/packages/stephenjude-filament-two-factor-authentication)[marcelweidum/filament-passkeys

Use passkeys in your filamentphp app

6758.2k2](/packages/marcelweidum-filament-passkeys)[relaticle/custom-fields

User Defined Custom Fields for Laravel Filament

16461.2k](/packages/relaticle-custom-fields)[finity-labs/fin-mail

A powerful email template manager and composer for Filament with dynamic token replacement, template versioning, and inline email sending.

316.8k2](/packages/finity-labs-fin-mail)

PHPackages © 2026

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