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

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

filamentphp/advanced-import
===========================

Advanced Excel import functionality for Filament resources with preview, batch processing, and audit trail

v1.1.1(1mo ago)035MITPHPPHP ^8.2

Since Apr 22Pushed 1mo agoCompare

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

READMEChangelogDependencies (6)Versions (3)Used By (0)

Filament Advanced Import
========================

[](#filament-advanced-import)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0aaa3d9ba71a257b9865d9e527d60e621c7274ea7b5437afe0ca20dbb7d58bf4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66696c616d656e747068702f616476616e6365642d696d706f72742e7376673f7374796c653d666c61742d7371756172652663616368655365636f6e64733d333030)](https://packagist.org/packages/filamentphp/advanced-import)[![Total Downloads](https://camo.githubusercontent.com/06f48b5ae13696a1b7f6961b89418a859fcc6003848fe1ac21128f86c4a524c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66696c616d656e747068702f616476616e6365642d696d706f72742e7376673f7374796c653d666c61742d7371756172652663616368655365636f6e64733d333030)](https://packagist.org/packages/filamentphp/advanced-import)[![License](https://camo.githubusercontent.com/6f252cef3a3f82535a07a5679b540579e493484fb715f0ff45f3c8bd8cf78913/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66696c616d656e747068702f616476616e6365642d696d706f72742e7376673f7374796c653d666c61742d7371756172652663616368655365636f6e64733d333030)](LICENSE.md)

Advanced Excel import functionality for Filament 4.x resources with preview, batch processing, and audit trail.

Features
--------

[](#features)

- **Excel Import with Preview** - Load and preview Excel data before processing
- **Batch Processing** - Process imports in transactions with individual error tracking
- **Audit Trail** - Full import history with detailed logs for each record
- **Customizable Processing** - Define your own parsing and processing logic
- **Multi-language Support** - English and Portuguese translations included
- **Artisan Commands** - Quickly scaffold import pages and processors
- **Filament 4.x &amp; 5.x Ready** - Built for Filament v4 and v5

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

[](#requirements)

- PHP 8.2+
- Laravel 11+, 12+ or 13+
- Filament 4.0+ or 5.0+
- Maatwebsite Excel 3.1+ or 4.0+

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

[](#installation)

Install the package via Composer:

```
composer require filamentphp/advanced-import
```

Run the install command:

```
php artisan import:install
```

This will:

1. Publish the configuration file
2. Publish and run the migrations
3. Create the `importacoes` and `importacao_detalhes` tables

### Register the Plugin

[](#register-the-plugin)

Add the plugin to your Filament panel provider:

```
use Filament\AdvancedImport\AdvancedImportPlugin;

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

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

[](#quick-start)

### 1. Create an Import Page

[](#1-create-an-import-page)

Use the Artisan command to generate an import page:

```
php artisan import:page ClienteResource --model=Cliente
```

This creates `app/Filament/Resources/Clientes/Pages/ImportClientes.php`.

### 2. Create an Import Processor

[](#2-create-an-import-processor)

Generate a processor for your import logic:

```
php artisan import:processor Clientes --category=clientes
```

This creates `app/Processors/ImportClientesProcessor.php`.

### 3. Customize the Import Page

[](#3-customize-the-import-page)

Edit the generated page to define your columns and parsing:

```
