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 2d 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 10% 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

2228d 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

[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)[mledoze/countries

List of world countries in JSON, CSV, XML and YAML

6.2k699.7k6](/packages/mledoze-countries)[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.1k57.6M131](/packages/openspout-openspout)[sonata-project/exporter

Lightweight Exporter library

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

PHPackages © 2026

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