PHPackages                             sazzadbinashique/laravel-excel-importer - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. sazzadbinashique/laravel-excel-importer

ActiveLibrary[Queues &amp; Workers](/categories/queues)

sazzadbinashique/laravel-excel-importer
=======================================

A Laravel package for importing Excel files with preview, validation, progress tracking, and error handling

v2.0.3(3mo ago)43MITPHPPHP ^8.2

Since Feb 16Pushed 3mo agoCompare

[ Source](https://github.com/sazzadbinashique/laravel-excel-importer)[ Packagist](https://packagist.org/packages/sazzadbinashique/laravel-excel-importer)[ RSS](/packages/sazzadbinashique-laravel-excel-importer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Laravel Excel Importer
======================

[](#laravel-excel-importer)

[![Latest Version](https://camo.githubusercontent.com/1327df092a443bc0333393835019c17b905d4a0803a8161b621df824edeeae1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73617a7a616462696e617368697175652f6c61726176656c2d657863656c2d696d706f727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sazzadbinashique/laravel-excel-importer)[![Total Downloads](https://camo.githubusercontent.com/9c8cc2ecc4da6e65dc665b40f8d1f055848f0431e8163f75fb39ef86d0550d11/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73617a7a616462696e617368697175652f6c61726176656c2d657863656c2d696d706f727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sazzadbinashique/laravel-excel-importer)[![License](https://camo.githubusercontent.com/5ee0a0ce5b658b8c662dbd8394e113f5342f5f1664e6e60950053f7c48e2eed2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73617a7a616462696e617368697175652f6c61726176656c2d657863656c2d696d706f727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sazzadbinashique/laravel-excel-importer)

Import any Laravel model from Excel/CSV with preview, progress tracking, validation errors, and a built-in dashboard.

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

[](#requirements)

- PHP 8.2+
- Laravel 11+
- Livewire 3+
- maatwebsite/excel 3.1+

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

[](#installation)

```
composer require sazzadbinashique/laravel-excel-importer
```

Publish package assets:

```
php artisan vendor:publish --provider="SazzadBinAshique\LaravelExcelImporter\ExcelImporterServiceProvider"
```

Run migrations:

```
php artisan migrate
```

Dashboard (Built-In)
--------------------

[](#dashboard-built-in)

The package registers a ready-to-use dashboard route (protected by `auth` by default):

- `/excel-importer` (name: `excel-importer.dashboard`)
- `/excel-importer/{type}` (name: `excel-importer.dashboard.type`)

Add a button anywhere in your app:

```
Open Import Dashboard
```

Configure Import Types
----------------------

[](#configure-import-types)

Define your import types in the published config:

```
// config/excel-importer.php
'import_types' => [
    'users' => \App\Imports\UsersImport::class,
    'products' => \App\Imports\ProductsImport::class,
],
```

Create an Import Class
----------------------

[](#create-an-import-class)

Extend the base import to get validation, batching, and progress updates:

```
