PHPackages                             dan-delvo/excel-import-for-backpack - 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. dan-delvo/excel-import-for-backpack

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

dan-delvo/excel-import-for-backpack
===================================

A Backpack CRUD operation for importing Excel and CSV files with header-to-column mapping.

v1.0.1(2mo ago)02↓100%MITPHP

Since Mar 11Pushed 2mo agoCompare

[ Source](https://github.com/Dan-Delvo/excel-import-for-backpack)[ Packagist](https://packagist.org/packages/dan-delvo/excel-import-for-backpack)[ Docs](https://github.com/dan--delvo/excel-import-for-backpack)[ RSS](/packages/dan-delvo-excel-import-for-backpack/feed)WikiDiscussions main Synced 1mo ago

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

ExcelImportForBackpack
======================

[](#excelimportforbackpack)

[![Latest Version on Packagist](https://camo.githubusercontent.com/df15bc69e925d95e5bc5a300e26a16d5a49ddccfd8b1d0c0ec8083923e54acbb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e2d64656c766f2f657863656c2d696d706f72742d666f722d6261636b7061636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dan-delvo/excel-import-for-backpack)[![Total Downloads](https://camo.githubusercontent.com/ccc2d5a9f719f3480dd701cfff65bb486728aaaf58cdba22b121de5846585cbc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e2d64656c766f2f657863656c2d696d706f72742d666f722d6261636b7061636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dan-delvo/excel-import-for-backpack)[![The Whole Fruit Manifesto](https://camo.githubusercontent.com/9fc65ecdd629dc33c369f73e0bc051740f01647367c131a574577fea2a5678bb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f77726974696e672532307374616e646172642d74686525323077686f6c6525323066727569742d627269676874677265656e)](https://github.com/the-whole-fruit/manifesto)

ExcelImportForBackpack adds an `import` operation to [Backpack for Laravel](https://backpackforlaravel.com/) CRUD controllers.

It provides:

- an Import button on the List operation;
- an import screen that reads Excel or CSV headers in the browser;
- automatic header-to-database-column mapping;
- server-side import handling using `maatwebsite/excel`.

Screenshots
-----------

[](#screenshots)

Screenshots can be added later. The package is fully usable without published assets.

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

[](#installation)

Prerequisites:

- PHP ZIP extension enabled (`ext-zip`)
- A Backpack v7 compatible Laravel application

```
composer require dan-delvo/excel-import-for-backpack
```

The package uses Laravel auto-discovery, so no manual service provider registration is required.

If Composer reports that `ext-zip` is missing, enable the ZIP extension in your CLI PHP installation and run the command again.

If you want to customize the package views or config, publish them with:

```
php artisan vendor:publish --tag=excel-import-for-backpack
```

Usage
-----

[](#usage)

Add the import operation trait to your CRUD controller:

```
