PHPackages                             johnnylei/csv - 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. johnnylei/csv

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

johnnylei/csv
=============

Yii2 csv

1.1.4(9y ago)7323MITPHPPHP &gt;=5.4.0

Since May 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/johnnylei/yii2-csv)[ Packagist](https://packagist.org/packages/johnnylei/csv)[ Docs](https://github.com/johnnylei/yii2-csv.git)[ RSS](/packages/johnnylei-csv/feed)WikiDiscussions master Synced 4d ago

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

yii2 csv extension
==================

[](#yii2-csv-extension)

这是一个基于yii2的csv导出扩展

install
-------

[](#install)

```
composer require --prefer-dist johnnylei/csv

```

usage
-----

[](#usage)

> 创建一个对象

```
$csv = new TheCsv([
    'header'=>$header,
    'fileName'=>$fileName,
]);

```

> 将数据一行一行的写入即可

```
$csv->putRow($item);

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

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

Every ~14 days

Total

4

Last Release

3299d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0839575c6efe849601b5352d8f37812e769a4014e64817f8ad5f89b675c610f?d=identicon)[johnnylei](/maintainers/johnnylei)

---

Top Contributors

[![Johnny539](https://avatars.githubusercontent.com/u/237241768?v=4)](https://github.com/Johnny539 "Johnny539 (2 commits)")

---

Tags

csvyii2

### Embed Badge

![Health badge](/badges/johnnylei-csv/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[kartik-v/yii2-export

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

1613.2M36](/packages/kartik-v-yii2-export)[ruskid/yii2-csv-importer

Helper to import csv files into database

36363.7k4](/packages/ruskid-yii2-csv-importer)[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

1152.4k](/packages/m35-thecsv)

PHPackages © 2026

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