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

ActiveLibrary

ferryvg/excel
=============

An eloquent way of importing and exporting Excel and CSV in Laravel 4 with the power of PHPExcel

2.1.6(9y ago)110LGPLPHPPHP &gt;=5.5

Since Nov 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ferryvg/Laravel-Excel)[ Packagist](https://packagist.org/packages/ferryvg/excel)[ RSS](/packages/ferryvg-excel/feed)WikiDiscussions 2.1 Synced 2mo ago

READMEChangelogDependenciesVersions (81)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)](http://www.maatwebsite.nl/laravel-excel/docs)[![](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)

[![Help the project](https://camo.githubusercontent.com/459490a43607fd8603616d86601535e3d749b39d81e71f34911374fd24501228/687474703a2f2f7777772e706c65646769652e636f6d2f63616d706169676e732f33303338352e706e673f736b696e5f6e616d653d6368726f6d65)](http://pledgie.com/campaigns/30385)

\#Installation

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`

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

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.

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 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!

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 75.4% 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 ~13 days

Total

80

Last Release

3491d ago

Major Versions

v1.3.3 → v2.0.22015-03-19

v1.3.5 → v2.0.42015-05-02

v1.3.6 → v2.0.52015-06-01

v1.3.7 → v2.0.62015-06-04

2.1.6 → 3.0.x-dev2016-09-21

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

v2.0.10PHP &gt;=5.4

v2.1.1PHP &gt;=5.5

### Community

---

Top Contributors

[![patrickbrouwers](https://avatars.githubusercontent.com/u/7728097?v=4)](https://github.com/patrickbrouwers "patrickbrouwers (318 commits)")[![MaatwebsiteSupport](https://avatars.githubusercontent.com/u/5889106?v=4)](https://github.com/MaatwebsiteSupport "MaatwebsiteSupport (43 commits)")[![ferryvg](https://avatars.githubusercontent.com/u/6007630?v=4)](https://github.com/ferryvg "ferryvg (10 commits)")[![hicode](https://avatars.githubusercontent.com/u/1543428?v=4)](https://github.com/hicode "hicode (5 commits)")[![mewben](https://avatars.githubusercontent.com/u/2163157?v=4)](https://github.com/mewben "mewben (5 commits)")[![brandonzylstra](https://avatars.githubusercontent.com/u/9854?v=4)](https://github.com/brandonzylstra "brandonzylstra (4 commits)")[![devinfd](https://avatars.githubusercontent.com/u/468399?v=4)](https://github.com/devinfd "devinfd (4 commits)")[![FrankPeters](https://avatars.githubusercontent.com/u/3206714?v=4)](https://github.com/FrankPeters "FrankPeters (3 commits)")[![GregPeden](https://avatars.githubusercontent.com/u/1343049?v=4)](https://github.com/GregPeden "GregPeden (2 commits)")[![driesvints](https://avatars.githubusercontent.com/u/594614?v=4)](https://github.com/driesvints "driesvints (2 commits)")[![opb](https://avatars.githubusercontent.com/u/778850?v=4)](https://github.com/opb "opb (2 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (2 commits)")[![mikesir87](https://avatars.githubusercontent.com/u/746837?v=4)](https://github.com/mikesir87 "mikesir87 (2 commits)")[![srobati](https://avatars.githubusercontent.com/u/2736646?v=4)](https://github.com/srobati "srobati (2 commits)")[![trouttdev](https://avatars.githubusercontent.com/u/964615?v=4)](https://github.com/trouttdev "trouttdev (2 commits)")[![drakakisgeo](https://avatars.githubusercontent.com/u/1863506?v=4)](https://github.com/drakakisgeo "drakakisgeo (2 commits)")[![YAAK](https://avatars.githubusercontent.com/u/379649?v=4)](https://github.com/YAAK "YAAK (1 commits)")[![asivaneswaran](https://avatars.githubusercontent.com/u/2759350?v=4)](https://github.com/asivaneswaran "asivaneswaran (1 commits)")[![duxet](https://avatars.githubusercontent.com/u/821707?v=4)](https://github.com/duxet "duxet (1 commits)")[![linaspasv](https://avatars.githubusercontent.com/u/1407067?v=4)](https://github.com/linaspasv "linaspasv (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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