PHPackages                             msrana/yocsv - 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. msrana/yocsv

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

msrana/yocsv
============

CSV easy import and export with php

v1.0.1(7y ago)1321MITPHPPHP &gt;=7.0

Since Aug 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/rana7cse/yocsv)[ Packagist](https://packagist.org/packages/msrana/yocsv)[ RSS](/packages/msrana-yocsv/feed)WikiDiscussions master Synced yesterday

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

yocsv
=====

[](#yocsv)

**YoCsv** is a simple php package to manipulate `csv` files and apply query on it's data like [php-jsonq](https://github.com/nahid/jsonq). This package also allow you to transform your expected data.

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

[](#installation)

Just add this package to your `composer.json` file to write this command.

```
composer require msrana/yocsv

```

Quick usage to read a csv file
------------------------------

[](#quick-usage-to-read-a-csv-file)

Just create an instance of `Csv` class and pass an argument of file path `string`. Then call the `get()` method to get data like example below

```
use MsRana\YoCsv\Csv;
$csv = new Csv("../source/school.csv") // use right path name to ignore `FileNotFoundException`
$data = $csv->get(); // you will get all row as array
```

**Please don't forget to add** `vendor/autoload.php` file.

`Or` you can instantiate without passing any argument on `constractor` in this way you have to call `read` or `import` method with a argument as file path.

```
use MsRana\YoCsv\Csv;
$csv = new Csv();
$csv->read("file.csv");
$csv->get(); // return all data row as array
```

This package also allow you to apply query/filters like as orm. We use [php-jsonq](https://github.com/nahid/jsonq) package to inherit it's query functionality on csv file. Please read [php-jsonq documentation](https://github.com/nahid/jsonq) and their apis to apply query on csv :D.

```
$csv->where('key',$value);
$csv->get(); // show result
```

Library used
------------

[](#library-used)

- [thephpleague/csv](https://github.com/thephpleague/csv)
- [nahid/jsonq](https://github.com/nahid/jsonq)

Credit
------

[](#credit)

- [Shipu Ahamed](https://github.com/shipu)
- [Nahid Bin Azhar](https://github.com/nahid)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2872d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7851343?v=4)[Salauddin Rana](/maintainers/rana7cse)[@rana7cse](https://github.com/rana7cse)

---

Top Contributors

[![rana7cse](https://avatars.githubusercontent.com/u/7851343?v=4)](https://github.com/rana7cse "rana7cse (24 commits)")[![im-fahad](https://avatars.githubusercontent.com/u/38749634?v=4)](https://github.com/im-fahad "im-fahad (1 commits)")

---

Tags

csv-datacsv-querycsv-readercsv-writerjsonqphpcsvphp-csv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/msrana-yocsv/health.svg)

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

###  Alternatives

[soapbox/laravel-formatter

A formatting library that converts data output between XML, CSV, JSON, TXT, YAML and a few others.

2481.1M13](/packages/soapbox-laravel-formatter)[silverstripe/gridfieldqueuedexport

Export large data sets from your GridField in the SilverStripe CMS interface through async jobs

10216.9k7](/packages/silverstripe-gridfieldqueuedexport)[jbzoo/csv-blueprint

CLI Utility for Validating and Generating CSV files based on custom rules. It ensures your data meets specified criteria, streamlining data management and integrity checks.

573.2k](/packages/jbzoo-csv-blueprint)[askdkc/livewire-csv

Add importing large CSV (and TSV) data feature to your Laravel models quickly and easily / Laravelにお手軽にCSVインポート機能(TSV含む、かつ大容量対応)を追加する凄いやつだよ🚀

171.4k](/packages/askdkc-livewire-csv)

PHPackages © 2026

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