PHPackages                             iphper/php-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. iphper/php-csv

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

iphper/php-csv
==============

1.1.1(3mo ago)08PHP

Since Feb 7Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/iphper/php-csv)[ Packagist](https://packagist.org/packages/iphper/php-csv)[ RSS](/packages/iphper-php-csv/feed)WikiDiscussions main Synced 1mo ago

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

phpCsv
======

[](#phpcsv)

使用教程
----

[](#使用教程)

1. 方法列表

方法描述示例filename设置文件名称$csv-&gt;filename(string): staticread读取文件$csv-&gt;read(?string) : arrayreadFn按行回调读取$csv-&gt;readFn(fn ($row) =&gt; var\_dump($row))write写入文件$csv-&gt;write(array $data)writeFn按回调写入文件$csv-&gt;writeFn(fn($add) =&gt; $add(\[\['名', '年'\]\]))format格式化列$csv-&gt;format('列名', fn($v) =&gt; $v)formats格式化多列$csv-&gt;format(\['列名' =&gt; fn($v) =&gt; $v), ...\]使用示例
----

[](#使用示例)

```
test/test.php

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance81

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

101d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dc682b0aeb62c471051daab953810521b4150fd6647cdcd6e98bd45435abb8b?d=identicon)[iphper](/maintainers/iphper)

---

Top Contributors

[![iphper](https://avatars.githubusercontent.com/u/37887253?v=4)](https://github.com/iphper "iphper (1 commits)")

### Embed Badge

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

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

###  Alternatives

[milo/hydrator

Hydrates object from array, exports object to array

2571.9k](/packages/milo-hydrator)[logoscon/acf-plus

Common utility classes for the Advanced Custom Fields (Pro) plugin on WordPress.

1023.3k](/packages/logoscon-acf-plus)

PHPackages © 2026

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