PHPackages                             danisalgueiro/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. [File &amp; Storage](/categories/file-storage)
4. /
5. danisalgueiro/easy-csv

ActiveLibrary[File &amp; Storage](/categories/file-storage)

danisalgueiro/easy-csv
======================

Set of PHP 5.3 classes for reading and writing CSV files.

1381PHP

Since Sep 4Pushed 13y ago1 watchersCompare

[ Source](https://github.com/danisalgueiro/easy-csv)[ Packagist](https://packagist.org/packages/danisalgueiro/easy-csv)[ RSS](/packages/danisalgueiro-easy-csv/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

EasyCSV
=======

[](#easycsv)

Set of PHP 5.3 classes for reading and writing CSV files.

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());

```

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

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/215491?v=4)[Dani Salgueiro](/maintainers/danisalgueiro)[@danisalgueiro](https://github.com/danisalgueiro)

---

Top Contributors

[![danisalgueiro](https://avatars.githubusercontent.com/u/215491?v=4)](https://github.com/danisalgueiro "danisalgueiro (2 commits)")[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (2 commits)")[![noetix](https://avatars.githubusercontent.com/u/1192279?v=4)](https://github.com/noetix "noetix (2 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (1 commits)")

### Embed Badge

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

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

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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