PHPackages                             rap2hpoutre/csv-to-associative-array - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rap2hpoutre/csv-to-associative-array

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rap2hpoutre/csv-to-associative-array
====================================

CVS to associative array

v0.0.3(9y ago)39.2k↓100%1MITPHP

Since Jun 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rap2hpoutre/csv-to-associative-array)[ Packagist](https://packagist.org/packages/rap2hpoutre/csv-to-associative-array)[ Docs](https://github.com/rap2hpoutre/csv-to-associative-array)[ RSS](/packages/rap2hpoutre-csv-to-associative-array/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

CSV to associative array
========================

[](#csv-to-associative-array)

This package only contains a 587 bytes function: `csv_to_associative_array`.

What?
-----

[](#what)

Get your CSV file as an associative array. From this:

```
name,email
raphael,raphael@example.org
lisa,lisa@example.org
```

To this:

```
[
  ['name' => 'raphael', 'email' => 'raphael@example.org'],
  ['name' => 'lisa',    'email' => 'lisa@example.org']
]
```

How?
----

[](#how)

Install via composer

```
composer require rap2hpoutre/csv-to-associative-array

```

Use

```
$content = \Rap2hpoutre\Csv\csv_to_associative_array('path/to/csv/file.csv');

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Every ~0 days

Total

3

Last Release

3621d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/849c3b70e82874c89e079738e4879e0eabb71d1a73f53e81b88c39a9b40f32ae?d=identicon)[rap2hpoutre](/maintainers/rap2hpoutre)

---

Top Contributors

[![rap2hpoutre](https://avatars.githubusercontent.com/u/1575946?v=4)](https://github.com/rap2hpoutre "rap2hpoutre (13 commits)")

---

Tags

arraycomposercsvphparraycsv

### Embed Badge

![Health badge](/badges/rap2hpoutre-csv-to-associative-array/health.svg)

```
[![Health](https://phpackages.com/badges/rap2hpoutre-csv-to-associative-array/health.svg)](https://phpackages.com/packages/rap2hpoutre-csv-to-associative-array)
```

###  Alternatives

[doctrine/collections

PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.

6.0k411.1M1.2k](/packages/doctrine-collections)[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k295.3M2.5k](/packages/symfony-property-access)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k9.2M108](/packages/cuyz-valinor)[openlss/lib-array2xml

Array2XML conversion library credit to lalit.org

31052.5M47](/packages/openlss-lib-array2xml)

PHPackages © 2026

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