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

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

pingpong/csv-reader
===================

Laravel 4 - Csv Reader

1.0.0(11y ago)821.7k↓11.8%5[1 issues](https://github.com/pingpong-labs/csv-reader/issues)MITPHPPHP &gt;=5.4.0

Since Aug 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pingpong-labs/csv-reader)[ Packagist](https://packagist.org/packages/pingpong/csv-reader)[ RSS](/packages/pingpong-csv-reader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Laravel 4 - CSV Reader
----------------------

[](#laravel-4---csv-reader)

[![Build Status](https://camo.githubusercontent.com/0de3a4d2658a15ebfb51d6510f8e10a0709f107b1c26fdc17c4d1fec68d39abc/68747470733a2f2f7472617669732d63692e6f72672f70696e67706f6e672d6c6162732f6373762d7265616465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pingpong-labs/csv-reader)[![Total Downloads](https://camo.githubusercontent.com/42b3093bcd2986c0ecbfdc887111423591070b9c5ad1cdbcdb7c7cb806324cfe/68747470733a2f2f706f7365722e707567782e6f72672f70696e67706f6e672f6373762d7265616465722f646f776e6c6f6164732e737667)](https://packagist.org/packages/pingpong/csv-reader)[![Latest Stable Version](https://camo.githubusercontent.com/2cd00ec031be5e43cdaa7e7452cdc4fdc4340239bf5532eca20f3bffbf07e144/68747470733a2f2f706f7365722e707567782e6f72672f70696e67706f6e672f6373762d7265616465722f762f737461626c652e737667)](https://packagist.org/packages/pingpong/csv-reader)[![Latest Unstable Version](https://camo.githubusercontent.com/677ce2bc28bc834f35409c0a88b190999f664e1663a5acbe437e3f5ed687b7e6/68747470733a2f2f706f7365722e707567782e6f72672f70696e67706f6e672f6373762d7265616465722f762f756e737461626c652e737667)](https://packagist.org/packages/pingpong/csv-reader)[![License](https://camo.githubusercontent.com/1f5fa07b207225f2a122b8398355361261dd193d21a1e79a74d274f6ad7ebc65/68747470733a2f2f706f7365722e707567782e6f72672f70696e67706f6e672f6373762d7265616465722f6c6963656e73652e737667)](https://packagist.org/packages/pingpong/csv-reader)

### Server Requirement

[](#server-requirement)

This package is require PHP 5.4 or higher.

### Installation

[](#installation)

Open your composer.json file, and add the new required package.

```
"pingpong/csv-reader": "1.0.*"

```

Next, open a terminal and run.

```
composer update

```

Next, Add new aliases in app/config/app.php.

```
'CsvReader' => 'Pingpong\CsvReader\Facades\CsvReader',
```

Done.

### Usage

[](#usage)

Create new instance.

```
$path = app_path('file.csv');

$csv = CsvReader::get($path);

// OR

$csv = CsvReader::make($path);
```

Get data.

```
$data = $csv->getData();
```

Get data as array.

```
$data = $csv->toArray();
```

Get data as json.

```
$data = $csv->toJson();
```

Get data as object.

```
$data = $csv->toObject();
```

Looping.

```
foreach($csv as $item)
{
	var_dump($item);
}
```

### Without Laravel

[](#without-laravel)

Basically all functions and APIs same as above.

```
$path = __DIR__ . '/path/to/csvfile.csv';

$csv = new Pingpong\CsvReader\CsvReader($path);

$data = $csv->getData();
```

### License

[](#license)

This package is open-sourced software licensed under [The BSD 3-Clause License](http://opensource.org/licenses/BSD-3-Clause)

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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 ~36 days

Total

2

Last Release

4243d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5221291be74d1e0ddef6931aa833f02a106df5b972431926321bf4f12d16b62b?d=identicon)[gravitano](/maintainers/gravitano)

---

Top Contributors

[![gravitano](https://avatars.githubusercontent.com/u/5087538?v=4)](https://github.com/gravitano "gravitano (16 commits)")

---

Tags

laravelcsvreaderpingpongcsv reader

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M710](/packages/maatwebsite-excel)[rap2hpoutre/fast-excel

Fast Excel import/export for Laravel

2.3k24.9M47](/packages/rap2hpoutre-fast-excel)[lukasss93/laravel-larex

Translate your Laravel application from a single CSV file!

9790.3k2](/packages/lukasss93-laravel-larex)[highsolutions/laravel-lang-import-export

A Laravel package providing artisan commands to import and export language files from and to CSV.

25292.3k](/packages/highsolutions-laravel-lang-import-export)

PHPackages © 2026

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