racklin/excel-generator
simple excel generator for laravel 5
1,182
3
Larablocks Analysis
racklin/excel-generator has no release yet to check Laravel compatibility against.
Recommendation checks
Use with careUse with care: meets 0 of 3 checks.
- No dated releases
- 0 downloads a month (needs 10,000)
- 3 GitHub stars (needs 100)
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require racklin/excel-generator:dev-master |
|
| PHP: | >=5.4.0 |
| License: | MIT |
| Last Updated: | Jul 16, 2018 |
| Links: | GitHub · Packagist |
Maintainer: racklin
Simple Excel Generator for Laravel
Simple Excel Generator for Laravel using phpexcel library.
This package using json as template and you can pass php array as data to generate Excel xlsx.
Installation
{
"require": {
"racklin/excel-generator": "dev-master"
}
}
Next, add the service provider to config/app.php.
'providers' => [
//...
Racklin\ExcelGenerator\ServiceProvider::class,
]
//...
'aliases' => [
//...
'ExcelGen' => Racklin\ExcelGenerator\Facades\ExcelGenerator::class
]
Example
$excel = new ExcelGenerator();
$excel->generate('example_01.json', ["name"=>"rack", "cname"=>"阿土伯", "data"=> [
["a"=>"A1", "b"=>"B1"],
["a"=>"A2", "b"=>"B2"],
["a"=>"A3", "b"=>"B2"],
["a"=>"A4", "b"=>"B2"],
["a"=>"A5", "b"=>"B2"],
["a"=>"A6", "b"=>"B2"],
["a"=>"A7", "b"=>"B2"],
["a"=>"A8", "b"=>"B2"],
["a"=>"A9", "b"=>"B2"],
]], '/tmp/example_01.xlsx', 'F');
Laravel Facade
ExcelGen::generate('example_01.json', ["name"=>"rack", "cname"=>"阿土伯", "data"=> [
["a"=>"A1", "b"=>"B1"],
["a"=>"A2", "b"=>"B2"],
["a"=>"A3", "b"=>"B2"],
["a"=>"A4", "b"=>"B2"],
["a"=>"A5", "b"=>"B2"],
["a"=>"A6", "b"=>"B2"],
["a"=>"A7", "b"=>"B2"],
["a"=>"A8", "b"=>"B2"],
["a"=>"A9", "b"=>"B2"],
]], '/tmp/example_01.xlsx', 'F');
Laravel version
Current package version works for Laravel 5+.
License
Alternatives to racklin/excel-generator
avadim/fast-excel-laravel
Lightweight and very fast XLSX Excel Spreadsheet Export/Import for Laravel
84,787
42