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

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

data-export/csv-export
======================

Put data to csv file, support millions of data

1.0.0(6y ago)05MITPHPPHP &gt;=5.5.9

Since Aug 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/struggle0119/data-export)[ Packagist](https://packagist.org/packages/data-export/csv-export)[ RSS](/packages/data-export-csv-export/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Data export
===========

[](#data-export)

```
1,Support array to csv file
2,Support sql to csv file
Please use sql mode export if you have large volume of data

```

Return a zip file
=================

[](#return-a-zip-file)

```
Local path will be return

```

Usage
=====

[](#usage)

(new Export())-&gt;setPath('Your server local path') -&gt;setLimit(10000) // Per file limit -&gt;setSource(2) // 1 array , 2 sql -&gt;setTitle(\[ 'author' =&gt; '作者', 'date' =&gt; '日期' \]) -&gt;dataToFile('SELECT author, date, content, title FROM table', \[ 'host' =&gt; '192.168.11.11', 'port' =&gt; '3306', 'dbname' =&gt; 'blog', 'username' =&gt; 'root', 'password' =&gt; '12345678' \]);

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2460d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/580ff6e8db6091e4c60ce126a75b360191a6f8c8ae2c38194645287da41a2a94?d=identicon)[struggle0119](/maintainers/struggle0119)

---

Top Contributors

[![struggle0119](https://avatars.githubusercontent.com/u/6016313?v=4)](https://github.com/struggle0119 "struggle0119 (3 commits)")

---

Tags

exportcsv

### Embed Badge

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

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

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[league/csv

CSV data manipulation made easy in PHP

3.5k166.1M646](/packages/league-csv)[goodby/csv

CSV import/export library

9555.6M23](/packages/goodby-csv)[sonata-project/exporter

Lightweight Exporter library

44920.9M35](/packages/sonata-project-exporter)[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)[handcraftedinthealps/goodby-csv

CSV import/export library

441.6M4](/packages/handcraftedinthealps-goodby-csv)

PHPackages © 2026

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