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

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

urionz/excel
============

Supercharged Excel exports and imports in Laravel

3.1.9(7y ago)017MITPHPPHP ^7.0

Since Nov 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/urionz/Laravel-Excel)[ Packagist](https://packagist.org/packages/urionz/excel)[ RSS](/packages/urionz-excel/feed)WikiDiscussions 3.1 Synced 3d ago

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

 [ ![Laravel Excel](https://user-images.githubusercontent.com/7728097/43685313-ff1e2110-98b0-11e8-8b50-900a2b262f0f.png) ](https://laravel-excel.maatwebsite.nl)

 Laravel Excel 3.1
===================

[](#--laravel-excel-31)

###  💪 🔥 🚀

[](#--muscle-fire-rocket)

 **Supercharged Excel exports and imports**
 A simple, but elegant wrapper around [PhpSpreadsheet](https://phpspreadsheet.readthedocs.io/) with the goal of simplifying exports and imports.

 [ ![Build Status](https://camo.githubusercontent.com/c2a813d20c48992783e5eda2b661fa0849033c7d4ee86cf78c3e67e8470a0116/68747470733a2f2f7472617669732d63692e6f72672f4d616174776562736974652f4c61726176656c2d457863656c2e7376673f6272616e63683d332e31) ](https://travis-ci.org/Maatwebsite/Laravel-Excel) [ ![StyleCI](https://camo.githubusercontent.com/e437d90f8b8bd8d4166b169d7812c0f36e2d20a8ebcacc3a9ba02b9c41ab4d1e/68747470733a2f2f7374796c6563692e696f2f7265706f732f31343235393339302f736869656c643f6272616e63683d332e31) ](https://styleci.io/repos/14259390) [ ![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)

####  [Quickstart](https://laravel-excel.maatwebsite.nl/3.1/exports/)  ·  [Documentation](https://laravel-excel.maatwebsite.nl/3.1/getting-started/)  ·  [Nova](https://github.com/Maatwebsite/Laravel-Nova-Excel)  ·  [Blog](https://medium.com/maatwebsite/laravel-excel/home)  ·  [Contributing](https://laravel-excel.maatwebsite.nl/3.1/getting-started/contributing.html)  ·  [Support](https://laravel-excel.maatwebsite.nl/3.1/getting-started/support.html)

[](#--quickstart------documentation------nova------blog------contributing------support)

- **Easily export collections to Excel.** Supercharge your Laravel collections and export them directly to an Excel or CSV document. Exporting has never been so easy.
- **Supercharged exports.** Export queries with automatic chunking for better performance. You provide us the query, we handle the performance. Exporting even larger datasets? No worries, Laravel Excel has your back. You can queue your exports so all of this happens in the background.
- **Supercharged imports.** Import workbooks and worksheets to Eloquent models with chunk reading and batch inserts! Have large files? You can queue every chunk of a file! Your entire import will happen in the background.
- **Export Blade views.** Want to have a custom layout in your spreadsheet? Use a HTML table in a Blade view and export that to Excel.

🚀 5 minutes quick start for exports
-----------------------------------

[](#rocket-5-minutes-quick-start-for-exports)

💡 Require this package in the `composer.json` of your Laravel project. This will download the package and PhpSpreadsheet.

```
composer require maatwebsite/excel

```

💪 Create an export class in `App/Exports`

```
php artisan make:export UsersExport --model=User

```

This should have created:

```
