PHPackages                             the-don-himself/csv-parse - 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. the-don-himself/csv-parse

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

the-don-himself/csv-parse
=========================

A small script that parse a typical CSV into a multidimensional array.

v0.0.1(6y ago)03MITPHPPHP ^7.2

Since Apr 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/The-Don-Himself/csv-parse)[ Packagist](https://packagist.org/packages/the-don-himself/csv-parse)[ RSS](/packages/the-don-himself-csv-parse/feed)WikiDiscussions master Synced 3w ago

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

csv-parse
=========

[](#csv-parse)

A very simple, very quick class and command line application that can parse CSV into a multidimensional array.

CSV Format
----------

[](#csv-format)

The CSV must have the first row as a header.

Example
-------

[](#example)

For example a CSV with

First NameLast NameEmailDonOmondiWill become a multidimensional array with each row looking like this when using the `print_r` command

```
[0] => Array
    (
        [First Name] => Don
        [Last Name] => Omondi
        [Email] => don.e.omondi@gmail.com
    )

```

Usage
-----

[](#usage)

### CLI

[](#cli)

To use the CLI, for example to verify how many records get parsed, simply have the package and execute this command

`php bin/parse parse:csv`

### Class

[](#class)

To use this within your own application simply directly invoke the class parse method with the location of the CSV file.

$csvParse = new \\TheDonHimself\\CsvParse\\Services\\CsvParse(); $data = $csvParse-&gt;parse($filePath);

Enjoy.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

2277d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a595ef2b0aa9f2c5a3c7040187ce12dd426f1db4149e1849863d83e526012b83?d=identicon)[The-Don-Himself](/maintainers/The-Don-Himself)

---

Top Contributors

[![The-Don-Himself](https://avatars.githubusercontent.com/u/5156320?v=4)](https://github.com/The-Don-Himself "The-Don-Himself (3 commits)")

---

Tags

csv

### Embed Badge

![Health badge](/badges/the-don-himself-csv-parse/health.svg)

```
[![Health](https://phpackages.com/badges/the-don-himself-csv-parse/health.svg)](https://phpackages.com/packages/the-don-himself-csv-parse)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)

PHPackages © 2026

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