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

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

yii2tech/spreadsheet
====================

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

1.0.5(6y ago)78567.4k↓23%2414BSD-3-ClausePHP

Since Feb 13Pushed 6y ago4 watchersCompare

[ Source](https://github.com/yii2tech/spreadsheet)[ Packagist](https://packagist.org/packages/yii2tech/spreadsheet)[ RSS](/packages/yii2tech-spreadsheet/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (7)Used By (14)

 [ ![](https://avatars2.githubusercontent.com/u/12951949) ](https://github.com/yii2tech)

Spreadsheet Data Export extension for Yii2
==========================================

[](#spreadsheet-data-export-extension-for-yii2)

This extension provides ability to export data to spreadsheet, e.g. Excel, LibreOffice etc.

For license information check the [LICENSE](LICENSE.md)-file.

[![Latest Stable Version](https://camo.githubusercontent.com/8536ee3cac0d21bce58f5a55c0c760674eab7d4c7f41885b291f07a6f854805f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79696932746563682f73707265616473686565742e737667)](https://packagist.org/packages/yii2tech/spreadsheet)[![Total Downloads](https://camo.githubusercontent.com/ca14b02ef3eee5b659a26ea0c1853bba978eb1513eb94bd5424bb88e59da4098/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79696932746563682f73707265616473686565742e737667)](https://packagist.org/packages/yii2tech/spreadsheet)[![Build Status](https://camo.githubusercontent.com/3e8fdeeee0050213c1615975fc51ddda0823886926ee4ec55e4790b267e88df6/68747470733a2f2f7472617669732d63692e6f72672f79696932746563682f73707265616473686565742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yii2tech/spreadsheet)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist yii2tech/spreadsheet

```

or add

```
"yii2tech/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:

```
