Download the PHP package dan-delvo/excel-import-for-backpack without Composer
On this page you can find all versions of the php package dan-delvo/excel-import-for-backpack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dan-delvo/excel-import-for-backpack
More information about dan-delvo/excel-import-for-backpack
Files in dan-delvo/excel-import-for-backpack
Package excel-import-for-backpack
Short Description A Backpack CRUD operation for importing Excel and CSV files with header-to-column mapping.
License MIT
Homepage https://github.com/dan--delvo/excel-import-for-backpack
Informations about the package excel-import-for-backpack
ExcelImportForBackpack
ExcelImportForBackpack adds an import operation to Backpack for Laravel 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 can be added later. The package is fully usable without published assets.
Installation
Prerequisites:
- PHP ZIP extension enabled (
ext-zip) - A Backpack v7 compatible Laravel application
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:
Usage
Add the import operation trait to your CRUD controller:
Once the trait is added, the package will:
- register
GET /admin/{entity}/importandPOST /admin/{entity}/importroutes; - add an Import button to the List operation;
- render the import screen from the package views.
The import expects the first row of the file to contain headings.
Queue Behavior
The import class implements ShouldQueue and WithChunkReading.
- If your application queue driver is
sync, the import runs immediately. - If your application uses a real queue connection, make sure a queue worker is running.
Overwriting
Publish the package resources:
Published views will be placed in:
You can then modify the published Blade files without changing the package source.
Change log
Changes are documented here on Github. Please see the Releases tab.
Testing
Contributing
Please see contributing.md for a todolist and howtos.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Dan Jaspher Delvo
- All Contributors
License
This project was released under MIT, so you can install it on top of any Backpack & Laravel project. Please see the license file for more information.
However, please note that you do need Backpack installed, so you need to also abide by its YUMMY License. That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on backpackforlaravel.com.
All versions of excel-import-for-backpack with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
backpack/crud Version ^7.0
maatwebsite/excel Version ^3.1