PHPackages                             kapokyue/laravel-excel - 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. kapokyue/laravel-excel

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

kapokyue/laravel-excel
======================

Supercharged Excel exports in Laravel

3.1.19(6y ago)01.2kMITPHPPHP ^7.0

Since Nov 14Pushed 6y agoCompare

[ Source](https://github.com/kapokyue/Laravel-Excel)[ Packagist](https://packagist.org/packages/kapokyue/laravel-excel)[ RSS](/packages/kapokyue-laravel-excel/feed)WikiDiscussions feature/laravel7 Synced yesterday

READMEChangelogDependencies (7)Versions (140)Used By (0)

Laravel Excel v2.1.\* for Laravel 5
-----------------------------------

[](#laravel-excel-v21-for-laravel-5)

Looking for Laravel Excel for Laravel 4? Visit the [`1.3` branch](https://github.com/Maatwebsite/Laravel-Excel/tree/1.3)

[![](https://camo.githubusercontent.com/9711f8886226bf3e2e2345eba079b13a2c131b58739c8170e976cc52ccb7e511/687474703a2f2f7777772e6d616174776562736974652e6e6c2f696d672f657863656c5f62616e6e65722e6a7067)](https://laravel-excel.maatwebsite.nl/)[![](https://cloud.githubusercontent.com/assets/7728097/6332170/1b495af2-bb84-11e4-9a93-34a9abc01840.jpg)](http://www.maatwebsite.nl/vacature-php-programmeur-maastricht)

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) {

        $sheet->setOrientation('landscape');

    });

})->export('xls');
```

---

[![Build Status](https://camo.githubusercontent.com/898c2381fea8a7139345ff022cb627c6b9d39969104359a32dd378c3304a3d9e/68747470733a2f2f7472617669732d63692e6f72672f4d616174776562736974652f4c61726176656c2d457863656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Maatwebsite/Laravel-Excel)[![Latest Stable Version](https://camo.githubusercontent.com/b4354491c51694ea51ca96b7a1af0ea7e61afc92c61fd4c3c03be215294150db/68747470733a2f2f706f7365722e707567782e6f72672f6d616174776562736974652f657863656c2f762f737461626c652e706e67)](https://packagist.org/packages/maatwebsite/excel) [![Total Downloads](https://camo.githubusercontent.com/9b4fd31bb4092001dc86517d083383b1455d1bea1da88bcd87eb1e9b79be2b79/68747470733a2f2f706f7365722e707567782e6f72672f6d616174776562736974652f657863656c2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/maatwebsite/excel) [![License](https://camo.githubusercontent.com/7c199f57a2e2c68bb14e188faf5c1b1a7a3f021cb9b724f5a2ad6cbd05b8408a/68747470733a2f2f706f7365722e707567782e6f72672f6d616174776562736974652f657863656c2f6c6963656e73652e706e67)](https://packagist.org/packages/maatwebsite/excel)[![Monthly Downloads](https://camo.githubusercontent.com/1e81392b601ae8360e3fea06dd51092b7d8edcce850f412143acbb096b3f0ce7/68747470733a2f2f706f7365722e707567782e6f72672f6d616174776562736974652f657863656c2f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/maatwebsite/excel)[![Daily Downloads](https://camo.githubusercontent.com/9454df6415f04a9577015832008d67e8f3e7c8b0ec0afc049c8363286a0e7f16/68747470733a2f2f706f7365722e707567782e6f72672f6d616174776562736974652f657863656c2f642f6461696c792e706e67)](https://packagist.org/packages/maatwebsite/excel)

Installation
============

[](#installation)

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

```
composer require "maatwebsite/excel:~2.1.0"
```

In Laravel 5.5 or higher, this package will be automatically discovered and you can safely skip the following two steps.

If using Laravel 5.4 or lower, after updating composer, add the ServiceProvider to the providers array in `config/app.php`

```
Maatwebsite\Excel\ExcelServiceProvider::class,
```

You can use the facade for shorter code; if using Laravel 5.4 or lower, 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.

Documentation
=============

[](#documentation)

The complete documentation can be found at:

Support
=======

[](#support)

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

Contributing
============

[](#contributing)

**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:

License
=======

[](#license)

This package is licensed under MIT. 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!

FAQ
===

[](#faq)

1. Chunk importer only imports the first row

Check that auto\_detect\_line\_endings in your php.ini is set to true.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 75.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Recently: every ~31 days

Total

139

Last Release

2206d ago

Major Versions

1.3.10 → 2.1.112017-03-23

2.1.25 → 3.0.0-alpha2018-02-17

2.1.27 → 3.0.02018-03-15

2.1.28 → 3.0.62018-06-12

2.1.30 → 3.1.02018-10-03

PHP version history (7 changes)v0.1.0PHP &gt;=5.3.0

v2.0.10PHP &gt;=5.4

v2.1.1PHP &gt;=5.5

3.0.0-alphaPHP ^7.1

3.0.1PHP ^7.0

3.2.x-devPHP ^7.2

3.x-devPHP ^7.2.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9626351?v=4)[kapokyue](/maintainers/kapokyue)[@kapokyue](https://github.com/kapokyue)

---

Top Contributors

[![patrickbrouwers](https://avatars.githubusercontent.com/u/7728097?v=4)](https://github.com/patrickbrouwers "patrickbrouwers (344 commits)")[![MaatwebsiteSupport](https://avatars.githubusercontent.com/u/5889106?v=4)](https://github.com/MaatwebsiteSupport "MaatwebsiteSupport (43 commits)")[![devinfd](https://avatars.githubusercontent.com/u/468399?v=4)](https://github.com/devinfd "devinfd (5 commits)")[![mewben](https://avatars.githubusercontent.com/u/2163157?v=4)](https://github.com/mewben "mewben (5 commits)")[![hicode](https://avatars.githubusercontent.com/u/1543428?v=4)](https://github.com/hicode "hicode (5 commits)")[![brandonzylstra](https://avatars.githubusercontent.com/u/9854?v=4)](https://github.com/brandonzylstra "brandonzylstra (4 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (4 commits)")[![FrankPeters](https://avatars.githubusercontent.com/u/3206714?v=4)](https://github.com/FrankPeters "FrankPeters (3 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (3 commits)")[![lk77](https://avatars.githubusercontent.com/u/9606882?v=4)](https://github.com/lk77 "lk77 (2 commits)")[![michaelachrisco](https://avatars.githubusercontent.com/u/398491?v=4)](https://github.com/michaelachrisco "michaelachrisco (2 commits)")[![mikesir87](https://avatars.githubusercontent.com/u/746837?v=4)](https://github.com/mikesir87 "mikesir87 (2 commits)")[![opb](https://avatars.githubusercontent.com/u/778850?v=4)](https://github.com/opb "opb (2 commits)")[![alexcarter404](https://avatars.githubusercontent.com/u/6672121?v=4)](https://github.com/alexcarter404 "alexcarter404 (2 commits)")[![aliusa](https://avatars.githubusercontent.com/u/9768908?v=4)](https://github.com/aliusa "aliusa (2 commits)")[![Cyrille37](https://avatars.githubusercontent.com/u/368965?v=4)](https://github.com/Cyrille37 "Cyrille37 (2 commits)")[![DavyDeCoster](https://avatars.githubusercontent.com/u/6095391?v=4)](https://github.com/DavyDeCoster "DavyDeCoster (2 commits)")[![drakakisgeo](https://avatars.githubusercontent.com/u/1863506?v=4)](https://github.com/drakakisgeo "drakakisgeo (2 commits)")[![driesvints](https://avatars.githubusercontent.com/u/594614?v=4)](https://github.com/driesvints "driesvints (2 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (2 commits)")

---

Tags

phplaravelexportexcelcsvimportbatchPHPExcelphpspreadsheet

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kapokyue-laravel-excel/health.svg)

```
[![Health](https://phpackages.com/badges/kapokyue-laravel-excel/health.svg)](https://phpackages.com/packages/kapokyue-laravel-excel)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
