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

ActiveLibrary

kothman/csv-parser
==================

A CSV parser for PHP

1.0.1(9y ago)029MITPHPPHP &gt;=5.4

Since Jul 18Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

CSVParser
=========

[](#csvparser)

[![Build Status](https://camo.githubusercontent.com/5bc445bb11b1a7e4c0fe3b1898f60533a4e9c9d32d289442da5300cfcc18f929/68747470733a2f2f7472617669732d63692e6f72672f6b6f74686d616e2f6373762d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kothman/csv-parser) [![Latest Stable Version](https://camo.githubusercontent.com/ccc7e41a890c0e146ab555dbea081efd09fad83772d50658a11a7635c1284620/68747470733a2f2f706f7365722e707567782e6f72672f6b6f74686d616e2f6373762d7061727365722f762f737461626c65)](https://packagist.org/packages/kothman/csv-parser) [![Total Downloads](https://camo.githubusercontent.com/03b1bd7b1ad58f4f3fee46ea40350b16346a0d16fdfe7d02a3487aac5add4de2/68747470733a2f2f706f7365722e707567782e6f72672f6b6f74686d616e2f6373762d7061727365722f646f776e6c6f616473)](https://packagist.org/packages/kothman/csv-parser)

A CSV Parser for PHP.

Install
-------

[](#install)

Via Composer

```
$ composer require kothman/csv-parser
```

Usage
-----

[](#usage)

```
$parser = new Kothman\CSVParser("file.csv");
while($row = $parser->row()) {
    echo implode(", ", $row);
}

$parser->rewind();
$parser->row();

$anotherParser = new Kothman\CSVParser("https://some.csv.file.csv", $delimeter = '.');
echo $anotherParser->toDictionary();
echo $anotherParser->countColumns();
echo $anotherParser->countRows();
```

Testing
-------

[](#testing)

```
$ composer test
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

3587d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/04f81cfecb8263e1665b215aa2d90def6aab934ba11ada17a23a45b5669f4bd8?d=identicon)[kothman](/maintainers/kothman)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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