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

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

barbosa89/csv
=============

CSV reader

1.0.0(11mo ago)01[3 PRs](https://github.com/barbosa89/csv/pulls)MITPHPPHP ^8.2CI passing

Since Jun 14Pushed 1mo agoCompare

[ Source](https://github.com/barbosa89/csv)[ Packagist](https://packagist.org/packages/barbosa89/csv)[ Docs](https://github.com/barbosa89/csv)[ GitHub Sponsors](https://github.com/barbosa89)[ RSS](/packages/barbosa89-csv/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

CSV reader
==========

[](#csv-reader)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a70d7dbad8a8fcb9a63b6f3c38ac11522c24ebc168f23ecbdb28315ada77dec5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626172626f736138392f6373762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/barbosa89/csv)[![Tests](https://camo.githubusercontent.com/8477e1a7fba5876cc86cbd9f1e83f95f9a8699278975522db7f48a7751897d01/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f626172626f736138392f6373762f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/barbosa89/csv/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/7005fec48721c95bd9757e8b64a72b6046f69df628563f3276be1c1a598d0bae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626172626f736138392f6373762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/barbosa89/csv)

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/85c06934d50cf64eb48b5d6d26ef4be10387df499b17131cfd2d130135625654/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6373762e6a70673f743d31)](https://spatie.be/github-ad-click/csv)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require barbosa89/csv
```

Usage
-----

[](#usage)

```
use Barbosa\Csv\Reader;

$reader = new Reader('/path/to/file.csv');

foreach($reader->read() => $row) {
    // code
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Omar Barbosa](https://github.com/barbosa89)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance73

Regular maintenance activity

Popularity1

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

338d ago

### Community

Maintainers

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

---

Top Contributors

[![barbosa89](https://avatars.githubusercontent.com/u/9729573?v=4)](https://github.com/barbosa89 "barbosa89 (5 commits)")[![obarbosa89](https://avatars.githubusercontent.com/u/105505191?v=4)](https://github.com/obarbosa89 "obarbosa89 (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

csvbarbosa89

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[league/csv

CSV data manipulation made easy in PHP

3.5k166.1M646](/packages/league-csv)[rap2hpoutre/fast-excel

Fast Excel import/export for Laravel

2.3k24.9M47](/packages/rap2hpoutre-fast-excel)[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)[goodby/csv

CSV import/export library

9555.6M23](/packages/goodby-csv)[sonata-project/exporter

Lightweight Exporter library

44920.9M35](/packages/sonata-project-exporter)

PHPackages © 2026

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