PHPackages                             filamentphp/advanced-export - 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. filamentphp/advanced-export

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

filamentphp/advanced-export
===========================

Advanced export functionality for Filament resources with dynamic column selection, filtering, ordering, and background processing.

v0.3.0(3mo ago)7288↓33.3%MITPHPPHP ^8.2

Since Dec 19Pushed 3mo agoCompare

[ Source](https://github.com/anselmocossa/filamentphp-advanced-export)[ Packagist](https://packagist.org/packages/filamentphp/advanced-export)[ Docs](https://github.com/filamentphp/advanced-export)[ RSS](/packages/filamentphp-advanced-export/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (10)Versions (5)Used By (0)

Filament Advanced Export
========================

[](#filament-advanced-export)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1ad71befdef317f13881eee25c30f8086f0bab1ceff5c0d1d3abb370382aa2be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66696c616d656e747068702f616476616e6365642d6578706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/filamentphp/advanced-export)[![Total Downloads](https://camo.githubusercontent.com/ade0c136edf1975231ad4b5d41867a97ab0c89265d6f0e6db5f561b6734c2242/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66696c616d656e747068702f616476616e6365642d6578706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/filamentphp/advanced-export)[![License](https://camo.githubusercontent.com/c9d46f60d879d09a010afd37e50b08572c790d1637e3e55cb13441d0575bf330/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66696c616d656e747068702f616476616e6365642d6578706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/filamentphp/advanced-export)

Advanced export functionality for Filament resources with dynamic column selection, filtering, ordering, and background processing.

Features
--------

[](#features)

- **One-Command Setup** - Configure export for any resource with a single command
- **Dynamic Column Selection** - Users choose which columns to export
- **Custom Column Titles** - Rename columns in the exported file
- **Configurable Ordering** - Sort by any column, ascending or descending
- **Automatic Filter Support** - Automatically respects active Filament table filters
- **Background Processing** - Queue large exports for async processing
- **View-Based Templates** - Customizable Blade views for export formatting
- **Bilingual Support** - English and Portuguese translations included
- **Artisan Commands** - Generate views and model methods automatically

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 11.0+ or 12.0+
- Filament 4.0+ or 5.0+
- Maatwebsite Excel 3.1+ or 4.0+

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

[](#installation)

Install the package via Composer:

```
composer require filamentphp/advanced-export
```

Run the installation command:

```
php artisan export:install
```

This will:

- Publish the configuration file
- Publish translation files
- Register the plugin in your panel (interactive)

### Manual Configuration

[](#manual-configuration)

If you prefer manual setup, publish assets individually:

```
# Publish configuration
php artisan export:publish --config

# Publish views
php artisan export:publish --views

# Publish translations
php artisan export:publish --lang

# Publish stubs
php artisan export:publish --stubs

# Publish everything
php artisan export:publish --all
```

Quick Start
-----------

[](#quick-start)

### Option 1: One-Command Setup (Recommended)

[](#option-1-one-command-setup-recommended)

The fastest way to add export functionality to any Filament resource:

```
php artisan export:resource "App\Filament\Resources\ClienteResource"
```

This single command will:

1. **Configure the Model** - Add `Exportable` interface, trait, and export methods
2. **Generate Views** - Create both simple and advanced export Blade templates
3. **Update ListRecords** - Add the `HasAdvancedExport` trait and export action

That's it! Your resource now has full export functionality.

#### Options

[](#options)

```
# Force overwrite existing files
php artisan export:resource "App\Filament\Resources\ClienteResource" --force
```

### Option 2: Step-by-Step Setup

[](#option-2-step-by-step-setup)

If you prefer more control, you can set up each component individually:

#### 1. Configure the Model

[](#1-configure-the-model)

```
php artisan export:model App\\Models\\Cliente
```

Or manually add the interface and methods:

```
