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

ActiveLibrary

ivanstan/php-csv
================

Collection of classes for CSV data manipulation

1.0(6y ago)03MITPHPPHP ^7.4

Since Mar 12Pushed 6y agoCompare

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

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

PhpCsv
======

[](#phpcsv)

PhpCsv is performant csv data manipulation framework.

### Usage

[](#usage)

Batch reading text file:

```
use PhpCsv/TextFileReader;

$reader = new TextFileReader('data.list');

foreach($reader->batch(10) as $batch) {
    // $batch is array of 10 lines from file
}

```

Batch reading csv file:

```
use PhpCsv/CsvFileReader;

$file = (new CsvFileReader('data.csv', new CsvFileMetadata()))
    ->firstLineIsHeader(true)
    ->fetchAssoc(true)
    ->skipEmpty(true);

foreach($reader->batch(10) as $batch) {
    // $batch is array of 10 rows from file

    Array
    (
        [0] => Array
            (
                [id] => 1
                [first_name] => Pattin
                [last_name] => Vivyan
                [email] => pvivyan0@ox.ac.uk
                [gender] => Male
                [ip_address] => 176.228.167.165
            )

        [1] => Array
            (
                [id] => 2
                [first_name] => Lynette
                [last_name] => Kerne
                [email] => lkerne1@wix.com
                [gender] => Female
                [ip_address] => 34.167.242.184
            )

        ...

    )
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

2258d ago

### Community

Maintainers

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

---

Top Contributors

[![ivanstan-collab](https://avatars.githubusercontent.com/u/251970089?v=4)](https://github.com/ivanstan-collab "ivanstan-collab (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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