PHPackages                             gitfullstacker/laravel-csv-parser - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. gitfullstacker/laravel-csv-parser

ActiveLibrary[File &amp; Storage](/categories/file-storage)

gitfullstacker/laravel-csv-parser
=================================

A Laravel package for parsing CSV files

v1.1.0(1y ago)174MITPHPPHP &gt;=7.4

Since Mar 23Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

Laravel CSV Parser 📄
====================

[](#laravel-csv-parser-)

[![Packagist Version](https://camo.githubusercontent.com/a4106735ef1a69aabb2ee1e4486c75c0371c7299b4f529a8042586b2c4089081/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67697466756c6c737461636b65722f6c61726176656c2d6373762d706172736572)](https://camo.githubusercontent.com/a4106735ef1a69aabb2ee1e4486c75c0371c7299b4f529a8042586b2c4089081/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67697466756c6c737461636b65722f6c61726176656c2d6373762d706172736572)[![License](https://camo.githubusercontent.com/1bea21b47974cf859c61ec3554036ce248d8da0340c07fc3a23d94a32f5b2fc8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f67697466756c6c737461636b65722f6c61726176656c2d6373762d706172736572)](https://camo.githubusercontent.com/1bea21b47974cf859c61ec3554036ce248d8da0340c07fc3a23d94a32f5b2fc8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f67697466756c6c737461636b65722f6c61726176656c2d6373762d706172736572)[![Laravel Support](https://camo.githubusercontent.com/f2b7033f772754bde68e1b4a72ec2df7df0ce3112c584f1a265f4a70a06b5e4f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d382532422d626c7565)](https://camo.githubusercontent.com/f2b7033f772754bde68e1b4a72ec2df7df0ce3112c584f1a265f4a70a06b5e4f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d382532422d626c7565)

A simple and efficient Laravel package for parsing CSV files using **league/csv**. Provides an easy-to-use API with Laravel Collections.

---

🚀 Features
----------

[](#-features)

✅ Simple CSV parsing into Laravel Collections
✅ Supports custom delimiters
✅ Auto-detects headers
✅ Lightweight and fast

---

📦 Installation
--------------

[](#-installation)

You can install the package via Composer:

```
composer require gitfullstacker/laravel-csv-parser
```

Laravel will automatically discover the service provider. No additional configuration is required.

---

⚙️ Usage
--------

[](#️-usage)

### Parsing a CSV File

[](#parsing-a-csv-file)

```
use GitFullStacker\CsvParser\Facades\CsvParser;

$csvData = CsvParser::parse(storage_path('data.csv'));

dd($csvData); // Returns Illuminate\Support\Collection of CSV rows
```

### Using a Custom Delimiter

[](#using-a-custom-delimiter)

```
$csvData = CsvParser::parse(storage_path('semicolon-separated.csv'), ';');
```

### Handling Errors

[](#handling-errors)

```
try {
    $csvData = CsvParser::parse(storage_path('missing.csv'));
} catch (\Exception $e) {
    echo "Error: " . $e->getMessage();
}
```

---

🏗 Configuration (Optional)
--------------------------

[](#-configuration-optional)

If you need to manually register the service provider, add the following in config/app.php:

```
'providers' => [
    GitFullStacker\CsvParser\CsvParserServiceProvider::class,
],
'aliases' => [
    'CsvParser' => GitFullStacker\CsvParser\Facades\CsvParser::class,
],
```

---

🔥 Testing
---------

[](#-testing)

To run tests, install dependencies and execute PHPUnit:

```
composer install
vendor/bin/phpunit
```

---

🧰 Requirements
--------------

[](#-requirements)

- PHP 7.4 or higher
- Laravel 8, 9, or 10
- league/csv 9.x

---

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome! 1. Fork the repository 2. Create a new branch (feature-branch) 3. Commit your changes 4. Push and submit a PR

---

📜 License
---------

[](#-license)

This package is open-sourced under the MIT License. See [LICENSE](./LICENSE) for details.

📩 Contact &amp; Support
-----------------------

[](#-contact--support)

For issues or feature requests, [open an issue](https://github.com/gitfullstacker/laravel-csv-parser/issues).

Follow me on GitHub: [gitfullstacker](https://github.com/gitfullstacker) 🚀

---

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance46

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

2

Last Release

420d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/553201a07c397689795dbdd085a48aee995d11d17bfdc0b12c58f32dcec7ec7b?d=identicon)[gitfullstacker](/maintainers/gitfullstacker)

---

Top Contributors

[![gitfullstacker](https://avatars.githubusercontent.com/u/102270828?v=4)](https://github.com/gitfullstacker "gitfullstacker (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[illuminate/filesystem

The Illuminate Filesystem package.

15161.6M2.6k](/packages/illuminate-filesystem)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)[azure-oss/storage-blob-laravel

Azure Storage Blob filesystem driver for Laravel

63582.2k1](/packages/azure-oss-storage-blob-laravel)[spatie/laravel-backup-server

Backup multiple applications

17016.7k1](/packages/spatie-laravel-backup-server)

PHPackages © 2026

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