PHPackages                             jwage/easy-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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. jwage/easy-csv

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

jwage/easy-csv
==============

Easy CSV manipulation for PHP 5.4+

1.0.0(7y ago)253446.5k↓10.3%58[6 issues](https://github.com/jwage/easy-csv/issues)[1 PRs](https://github.com/jwage/easy-csv/pulls)4MITPHPPHP ^7.2

Since Feb 17Pushed 5y ago11 watchersCompare

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

READMEChangelog (7)Dependencies (4)Versions (8)Used By (4)

EasyCSV
=======

[](#easycsv)

EasyCSV is a simple Object Oriented CSV manipulation library for PHP 7.2+

[![Build Status](https://camo.githubusercontent.com/8d11abe0dc9b535cfbe57694807b49070162901390d4738f5fde346605dae228/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a776167652f656173792d6373762e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/jwage/easy-csv)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/ffd21ed1068262bd319362de6230c50e01157deb246951cb0cae8795f5351714/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a776167652f656173792d6373762f6261646765732f7175616c6974792d73636f72652e706e673f733d37653065316434623564376636626536316133636438303464626135353661306534643131343164)](https://scrutinizer-ci.com/g/jwage/easy-csv/)[![Code Coverage](https://camo.githubusercontent.com/24d8a5992646e1e7155b293fce5069e15c0dbf89200aa5d2f88e40078e524b46/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a776167652f656173792d6373762f6261646765732f636f7665726167652e706e673f733d61303233333262633464366133326466333137316632626137313465343538336137306330313534)](https://scrutinizer-ci.com/g/jwage/easy-csv/)[![Latest Stable Version](https://camo.githubusercontent.com/2f1727ad0236fa2be7b7615feb52707387a720ec7dfde6e2fc1fb0e896281770/68747470733a2f2f706f7365722e707567782e6f72672f6a776167652f656173792d6373762f762f737461626c652e706e67)](https://packagist.org/packages/jwage/easy-csv)[![Total Downloads](https://camo.githubusercontent.com/2eb4de310c865d833f0f7f6b90094dd1aa7193d6a8993429c858adb5e5b1f16b/68747470733a2f2f706f7365722e707567782e6f72672f6a776167652f656173792d6373762f646f776e6c6f6164732e706e67)](https://packagist.org/packages/jwage/easy-csv)

Installation
------------

[](#installation)

Install via [composer](https://getcomposer.org/):

```
composer require jwage/easy-csv
```

Reader
------

[](#reader)

To read CSV files we need to instantiate the EasyCSV reader class:

```
$reader = new \EasyCSV\Reader('read.csv');
```

You can iterate over the rows one at a time:

```
while ($row = $reader->getRow()) {
    print_r($row);
}
```

Or you can get everything all at once:

```
print_r($reader->getAll());
```

If you have a file with the header in a different line:

```
// our headers aren't on the first line
$reader = new \EasyCSV\Reader('read.csv', 'r+', false);
// zero-based index, so this is line 4
$reader->setHeaderLine(3);
```

Advance to a different line:

```
$reader->advanceTo(6);

```

More in the Reader unit test.

Writer
------

[](#writer)

To write CSV files we need to instantiate the EasyCSV writer class:

```
$writer = new \EasyCSV\Writer('write.csv');
```

You can write a row by passing a commas separated string:

```
$writer->writeRow('column1, column2, column3');
```

Or you can pass an array:

```
$writer->writeRow(array('column1', 'column2', 'column3'));
```

You can also write several rows at once:

```
$writer->writeFromArray(array(
    'value1, value2, value3',
    array('value1', 'value2', 'value3')
));
```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity53

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 56.6% 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 ~374 days

Recently: every ~341 days

Total

7

Last Release

2594d ago

Major Versions

0.0.6 → 1.0.02019-04-11

PHP version history (4 changes)0.0.1PHP &gt;=5.3.0

0.0.2PHP &gt;=5.4.0

0.0.5PHP ^7.1

1.0.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c4b569aa557436333fb02f55dfc0dacd6cb54c29820de24d9ad8a61cabb7716?d=identicon)[jwage](/maintainers/jwage)

---

Top Contributors

[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (30 commits)")[![jorgecolonconsulting](https://avatars.githubusercontent.com/u/359945?v=4)](https://github.com/jorgecolonconsulting "jorgecolonconsulting (10 commits)")[![adosaiguas](https://avatars.githubusercontent.com/u/1634132?v=4)](https://github.com/adosaiguas "adosaiguas (3 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (3 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (2 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (1 commits)")[![korstiaan](https://avatars.githubusercontent.com/u/902842?v=4)](https://github.com/korstiaan "korstiaan (1 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![royopa](https://avatars.githubusercontent.com/u/442991?v=4)](https://github.com/royopa "royopa (1 commits)")[![jeremyFreeAgent](https://avatars.githubusercontent.com/u/176363?v=4)](https://github.com/jeremyFreeAgent "jeremyFreeAgent (1 commits)")

---

Tags

csvcsv-readerphpcsvreadwrite

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jwage-easy-csv/health.svg)

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

###  Alternatives

[league/csv

CSV data manipulation made easy in PHP

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

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k57.6M131](/packages/openspout-openspout)[shuchkin/simplecsv

Parse and retrieve data from CSV files. Export data to CSV.

5192.4k](/packages/shuchkin-simplecsv)

PHPackages © 2026

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