PHPackages                             dfware/spreadsheet - 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. dfware/spreadsheet

ActiveYii2-extension[PDF &amp; Document Generation](/categories/documents)

dfware/spreadsheet
==================

Yii2 extension for export to a spreadsheet, e.g. Excel, LibreOffice etc.

1.0.0(2y ago)091BSD-3-ClausePHP

Since Sep 27Pushed 2y agoCompare

[ Source](https://github.com/dfware/spreadsheet)[ Packagist](https://packagist.org/packages/dfware/spreadsheet)[ GitHub Sponsors](https://github.com/klimov-paul)[ Patreon](https://www.patreon.com/klimov_paul)[ RSS](/packages/dfware-spreadsheet/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require dfware/spreadsheet

```

or add

```
"dfware/spreadsheet": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

This extension provides ability to export data to a spreadsheet, e.g. Excel, LibreOffice etc. It is powered by [phpoffice/phpspreadsheet](https://github.com/PHPOffice/PhpSpreadsheet) library. Export is performed via `\yii2tech\spreadsheet\Spreadsheet` instance, which provides interface similar to `\yii\grid\GridView` widget.

Example:

```
