samheldev/excel-mapper
最新稳定版本:v1.0.0
Composer 安装命令:
composer require samheldev/excel-mapper
包简介
Laravel package to map Excel columns to database fields
README 文档
README
Excel Mapper is a Laravel package that provides a simple UI and backend logic to import Excel files into your database with customizable column mapping. It is built with Laravel Livewire and supports dynamic table selection, column mapping, and validation.
🚀 Features
- Upload Excel/CSV files via Livewire.
- Map Excel columns to database table columns.
- Automatically normalize column names.
- Display mapped data before importing.
- Supports row-level validation.
- Rules can be defined per table using the
config/excel-import.phpfile.
📦 Installation
composer require sam/excel-mapper php artisan vendor:publish --provider="Sam\ExcelMapper\ExcelMapperServiceProvider" php artisan vendor:publish --tag=excel-import-config # Publish the config file
📄 Configuration
php artisan vendor:publish --tag=excel-import-config # Publish the config file
🧪Validation
You can define validation rules for each table in the config/excel-import.php file. The rules will be applied to the data before importing it into the database.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-28