Laravel-Excel 0,0,3,4,0,5,8,2 travis-ci Packagist phpunit

An eloquent way of importing and exporting Excel and CSV files for Laravel with the power of PHPExcel

Laravel Excel v2.1.* for Laravel 5

Looking for Laravel Excel for Laravel 4? Visit the 1.3 branch

Laravel Excel brings the power of PHPOffice’s PHPExcel to Laravel 5 with a touch of the Laravel Magic. It includes features like: importing Excel and CSV to collections, exporting models, array’s and views to Excel, importing batches of files and importing a file by a config file.

  • Import into Laravel Collections
  • Export Blade views to Excel and CSV with optional CSS styling
  • Batch imports
  • A lot of optional config settings
  • Easy cell caching
  • Chunked and queued importer
  • ExcelFile method injections
  • Editing existing Excel files
  • Advanced import by config files
  • and many more…

Excel::create('Laravel Excel', function($excel) {

    $excel->sheet('Excel sheet', function($sheet) {




Build Status Latest Stable Version Total Downloads License Monthly Downloads Daily Downloads

Help the project


Require this package in your composer.json and update composer. This will download the package and PHPExcel of PHPOffice.

"maatwebsite/excel": "~2.1.0"

After updating composer, add the ServiceProvider to the providers array in config/app.php


You can use the facade for shorter code. Add this to your aliases:

'Excel' => Maatwebsite\Excel\Facades\Excel::class,

The class is bound to the ioC as excel

$excel = App::make('excel');

To publish the config settings in Laravel 5 use:

php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"

This will add an excel.php config file to your config folder.


The complete documentation can be found at:


Support only through Github. Please don’t mail us about issues, make a Github issue instead.


ALL bug fixes should be made to appropriate branch (e.g. 2.0 for 2.0.* bug fixes). Bug fixes should never be sent to the master branch.

More about contributing can be found at:


This package is licensed under LGPL. You are free to use it in personal and commercial projects. The code can be forked and modified, but the original copyright author should always be included!


1) Chunk importer only imports the first row

Check that auto_detect_line_endings in your php.ini is set to true.

Related Repositories



An eloquent way of importing and exporting Excel and CSV files for Laravel with the power of PHPExcel ...



An eloquent way of importing and exporting Excel and CSV in PHP 5.4+ with the power of packages like PHPExcel, League/Csv and Laravel's Collections ...



A faster and more eloquent way of importing and exporting Excel and CSV in Laravel with the speed of Spout. ...



用Laravel建立的Excel資料轉換工具 ...



This project is very simple demo to show you how to use the laravel excel package quickly. ...

Top Contributors

patrickbrouwers MaatwebsiteSupport mewben hicode brandondrew devinfd MarkBaker FrankPeters driesvints itscuriousdele drakakisgeo loren138 mikesir87 mltroutt opb SirLamer srobati GrahamCampbell psyddhartha baopham barryvdh b3ni johanholm Elandril lojistic-eric gmsantos gazben adamdburton guidsen ismailbaskin


package version
php >=5.5
ext-zip *
phpoffice/phpexcel 1.8.*
illuminate/cache 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
illuminate/config 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
illuminate/filesystem 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
illuminate/support 5.0.*|5.1.*|5.2.*|5.3.*|5.4.*|5.5.*
jeremeamia/superclosure ^2.3
nesbot/carbon ~1.0
tijsverkoyen/css-to-inline-styles ~2.0
dev phpseclib/phpseclib ~1.0
phpunit/phpunit ~4.0
mockery/mockery ~0.9
orchestra/testbench 3.1.*|3.2.*|3.3.*|3.4.*|3.5.*


-   v2.1.3 zip tar
-   v2.1.2 zip tar
-   v2.1.1 zip tar
-   v2.1.0 zip tar
-   v2.0.10 zip tar
-   v2.0.9 zip tar
-   v2.0.6 zip tar
-   v2.0.5 zip tar
-   v2.0.4 zip tar
-   v2.0.3 zip tar
-   v2.0.2 zip tar
-   v2.0.0 zip tar
-   v1.3.7 zip tar
-   v1.3.6 zip tar
-   v1.3.5 zip tar
-   v1.3.4 zip tar
-   v1.3.3 zip tar
-   v1.3.1 zip tar
-   v1.3.0 zip tar
-   v1.2.3 zip tar
-   v1.2.2 zip tar
-   v1.2.1 zip tar
-   v1.2.0 zip tar
-   v1.1.9 zip tar
-   v1.1.8 zip tar
-   v1.1.7 zip tar
-   v1.1.6 zip tar
-   v1.1.5 zip tar
-   v1.1.4 zip tar
-   v1.1.3 zip tar