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(4mo ago)18PHP

Since Feb 7Pushed 4mo 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 today

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

32

—

LowBetter than 69% of packages

Maintenance74

Regular maintenance activity

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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

147d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37887253?v=4)[iphper](/maintainers/iphper)[@iphper](https://github.com/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

[phpexperts/workday-planner

Given a date range, this will give you all of the workdays for that country.

251.5k](/packages/phpexperts-workday-planner)

PHPackages © 2026

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