PHPackages                             heptagon-maatwebsite/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. [File &amp; Storage](/categories/file-storage)
4. /
5. heptagon-maatwebsite/excel

ActiveLibrary[File &amp; Storage](/categories/file-storage)

heptagon-maatwebsite/excel
==========================

Supercharged Excel exports in Laravel

0169PHPCI failing

Since Feb 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/senthilhep/heptagon-maatwebsite)[ Packagist](https://packagist.org/packages/heptagon-maatwebsite/excel)[ RSS](/packages/heptagon-maatwebsite-excel/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)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

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/73afe8a2d8700a64cb64ee7ad7d7e2fda627e0aab4d393074121e555c9639a61?d=identicon)[senthilhep](/maintainers/senthilhep)

---

Top Contributors

[![senthilhep](https://avatars.githubusercontent.com/u/61191330?v=4)](https://github.com/senthilhep "senthilhep (4 commits)")

### Embed Badge

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

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M123](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M61](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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