PHPackages                             iyogesharma/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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. iyogesharma/csv

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

iyogesharma/csv
===============

00PHP

Since Jul 2Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

CSV
---

[](#csv)

This package serves as a wrapper for CSV reading logic, handling all file reading automatically. You only need to provide a CSV file, and it will return the file data as an array.

Additionally, this package includes a Ys\\Csv\\Writer to facilitate downloading CSV files.

### Read Csv File

[](#read-csv-file)

```
    $file = $request->file('csv');

    $reader = new YS\Csv\Reader();

    $reader->importFromPath($file);

    //to read chunck of data

    $reader->chunk(2500)->fetch(true);

    //the fetch function accept a boolean param bool $assoc with default value false,
    //$assoc = true will fetch data as associated array with column name as key.
    //$assoc = false will return normal array

    // get number of rows in file $reader->getSize()

    $rows = $reader->getRecords() // return generator you can interate over rows to access data

```

### Download Csv File

[](#download-csv-file)

```
    Writer::download($headers,$data,'filename');
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6df6c987f76f76f4d8e7873b6983b44e16d72d39b3adf711a8e13f74e5b6fe29?d=identicon)[iYogesharma](/maintainers/iYogesharma)

---

Top Contributors

[![iYogesharma](https://avatars.githubusercontent.com/u/44565761?v=4)](https://github.com/iYogesharma "iYogesharma (2 commits)")

---

Tags

csvlaravel

### Embed Badge

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

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

###  Alternatives

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)[setasign/tfpdf

This class is a modified version of FPDF that adds UTF-8 support. The latest version is based on FPDF 1.85.

426.1M30](/packages/setasign-tfpdf)[aspera/xlsx-reader

Spreadsheet reader library for XLSX files

52742.2k5](/packages/aspera-xlsx-reader)

PHPackages © 2026

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