PHPackages                             xzzyassin/yii2-csv-export - 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. xzzyassin/yii2-csv-export

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

xzzyassin/yii2-csv-export
=========================

Export data to CSV file

v1.0(8y ago)168PHPPHP &gt;=5.4.0

Since May 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/XZzYassin/yii2-csv-export)[ Packagist](https://packagist.org/packages/xzzyassin/yii2-csv-export)[ RSS](/packages/xzzyassin-yii2-csv-export/feed)WikiDiscussions master Synced 1mo ago

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

Export array data to csv file
=============================

[](#export-array-data-to-csv-file)

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

[](#installation)

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

```
php composer.phar require serrg1994/yii2-csv-export "@dev"

```

or add

```
"serrg1994/yii2-csv-export": "@dev"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

```
CSVExport::Export([
    'dirName' => Yii::getAlias('@webroot'),
    'fileName' => 'users.csv',
    'data' => [
        ['#', 'User Name', 'Email'],
        ['1', 'Serhiy Novoseletskiy', 'novoseletskiyserhiy@gmail.com']
    ]
]);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3280d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7baba69490caaac2f29d5b77cf1d7092fcfd0fe45afe62ac7cb62fef6272ea27?d=identicon)[XZz\_Yassin](/maintainers/XZz_Yassin)

---

Top Contributors

[![serhiynovos](https://avatars.githubusercontent.com/u/9201885?v=4)](https://github.com/serhiynovos "serhiynovos (7 commits)")[![XZzYassin](https://avatars.githubusercontent.com/u/4236495?v=4)](https://github.com/XZzYassin "XZzYassin (2 commits)")

---

Tags

exportcsvyii2

### Embed Badge

![Health badge](/badges/xzzyassin-yii2-csv-export/health.svg)

```
[![Health](https://phpackages.com/badges/xzzyassin-yii2-csv-export/health.svg)](https://phpackages.com/packages/xzzyassin-yii2-csv-export)
```

###  Alternatives

[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1623.1M35](/packages/kartik-v-yii2-export)[moonlandsoft/yii2-phpexcel

Exporting PHP to Excel or Importing Excel to PHP

1491.1M16](/packages/moonlandsoft-yii2-phpexcel)[ruskid/yii2-csv-importer

Helper to import csv files into database

37356.4k4](/packages/ruskid-yii2-csv-importer)[arogachev/yii2-excel

ActiveRecord import and export based on PHPExcel for Yii 2 framework

6480.3k1](/packages/arogachev-yii2-excel)[phpnt/yii2-export

Yii2 It saves data in xls, csv, word, html, pdf files.

158.9k](/packages/phpnt-yii2-export)[m35/thecsv

yii2 csv export extension

1252.0k](/packages/m35-thecsv)

PHPackages © 2026

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