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

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

rahul900day/laravel-csv
=======================

CSV manipulation for Laravel.

012[1 PRs](https://github.com/RahulDey12/laravel-csv/pulls)PHP

Since Jan 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/RahulDey12/laravel-csv)[ Packagist](https://packagist.org/packages/rahul900day/laravel-csv)[ RSS](/packages/rahul900day-laravel-csv/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![Logo Laravel CSV](/art/logo.svg)](/art/logo.svg)

Laravel CSV is a supercharged ⚡ CSV reader with the sweets of Laravel Eloquent.

> **NOTE:** This is very early stage of this package so do not use this package to production *API* may have change in the feature.

### What needs to be done in this package:

[](#what-needs-to-be-done-in-this-package)

- Add `Where` Clause to the `Builder`
- Add `OrderBy` to the `Builder`
- Add Sanitization support
- Add support for casting
- Add file saving support
- Add enum support
- Add Facade Support
- Add Tests

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

[](#installation)

> Requires [PHP 8.0+](https://www.php.net/releases/)

Require Laravel CSV using [Composer](https://getcomposer.org/):

```
composer require rahul900day/laravel-csv
```

Usage
-----

[](#usage)

```
use Rahul900day\Csv\Facades\Csv;

// Print 3 Passenger Name age above 20
Csv::fromPath('titanic.csv')
    ->query()
    ->where('Age', '>', 20)
    ->willBeSanitized()
    ->lazy()
    ->take(3)
    ->each(function ($passenger) {
        echo $passenger->Name
    });
```

Credits
-------

[](#credits)

- [Rahul Dey](https://github.com/RahulDey12)
- [All Contributors](https://github.com/RahulDey12/laravel-csv/graphs/contributors)

This package contains code copied from Laravel's [`Builder`](https://github.com/laravel/framework/blob/9.x/src/Illuminate/Database/Query/Builder.php) &amp; [`Collection`](https://github.com/laravel/framework/blob/9.x/src/Illuminate/Collections/Collection.php) class.

License
-------

[](#license)

This package is released under the [MIT License](https://github.com/RahulDey12/laravel-csv/blob/main/LICENSE.md).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 86% 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.

### Community

Maintainers

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

---

Top Contributors

[![RahulDey12](https://avatars.githubusercontent.com/u/26340814?v=4)](https://github.com/RahulDey12 "RahulDey12 (37 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (6 commits)")

### Embed Badge

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

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

###  Alternatives

[wbl/magento-minify

Simply enables js and css minification.

602.2k](/packages/wbl-magento-minify)

PHPackages © 2026

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