PHPackages                             charmer/yii2-dataexporter - 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. charmer/yii2-dataexporter

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

charmer/yii2-dataexporter
=========================

Exports Yii2 data provider models to file

00PHP

Since Jan 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Charmer/yii2-dataexporter)[ Packagist](https://packagist.org/packages/charmer/yii2-dataexporter)[ RSS](/packages/charmer-yii2-dataexporter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Yii2 data file exporter
=======================

[](#yii2-data-file-exporter)

Exports Yii2 data provider models to file using batch iteration and temp file for reduce memory usage

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist charmer/yii2-dataexporter "*"

```

or add

```
"charmer/yii2-dataexporter": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Example web controller with action that returns file for download:

```
