PHPackages                             light-worx/filament-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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. light-worx/filament-reports

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

light-worx/filament-reports
===========================

A Filament plugin for creating PDF reports using FPDF

033↓84.3%PHP

Since Jul 3Pushed 4mo agoCompare

[ Source](https://github.com/light-worx/filament-reports)[ Packagist](https://packagist.org/packages/light-worx/filament-reports)[ RSS](/packages/light-worx-filament-reports/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Filament Reports Plugin
=======================

[](#filament-reports-plugin)

A Filament plugin for creating pixel-perfect PDF reports using FPDF.

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

[](#installation)

### 1. Set up the plugin in your project

[](#1-set-up-the-plugin-in-your-project)

If developing locally within your project:

```
mkdir -p packages/yourvendor/filament-reports
# Copy all plugin files to this directory
```

### 2. Add to composer.json

[](#2-add-to-composerjson)

Add to the `repositories` section:

```
"repositories": [
    {
        "type": "path",
        "url": "./packages/yourvendor/filament-reports"
    }
]
```

Add to the `require` section:

```
"yourvendor/filament-reports": "*"
```

### 3. Install dependencies

[](#3-install-dependencies)

```
composer require setasign/fpdf
composer update yourvendor/filament-reports
```

### 4. Publish configuration

[](#4-publish-configuration)

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

### 5. Register the plugin

[](#5-register-the-plugin)

In your `AdminPanelProvider` or panel configuration:

```
use YourVendor\FilamentReports\FilamentReportsPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            FilamentReportsPlugin::make(),
        ]);
}
```

Creating Your First Report
--------------------------

[](#creating-your-first-report)

### 1. Create a Report Class

[](#1-create-a-report-class)

```
