PHPackages                             jtkendall/kurin - 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. [Database &amp; ORM](/categories/database)
4. /
5. jtkendall/kurin

ActiveLibrary[Database &amp; ORM](/categories/database)

jtkendall/kurin
===============

A simple library to load and clean your CSV file into PHP arrays with named keys.

v0.0.7(1y ago)087MITPHPPHP ^8.0

Since Sep 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jtkendall/kurin)[ Packagist](https://packagist.org/packages/jtkendall/kurin)[ Docs](https://github.com/jtkendall/kurin)[ RSS](/packages/jtkendall-kurin/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

Kurīn
-----

[](#kurīn)

A simple library to load and clean your CSV file into PHP arrays with named keys. While created specifcally for use with Laravel Database Seeders, it can be used any place you want to convert a CSV file to a PHP array with named keys.

### Installation

[](#installation)

Kurīn can be installed with composer.

`composer require jtkendall/kurin`

### Usage

[](#usage)

Once Kurīn has been added to Laravel you can use it anywhere you want to convert a CSV file to a PHP array.

##### Basic Example

[](#basic-example)

```
use jtkendall\Kurin;

$results = Kurin::fromCSV('data/example.csv', ['id', 'name']);
```

##### Seeder Example

[](#seeder-example)

```
use Illuminate\Database\Seeder;
use jtkendall\Kurin;

class ExampleTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $examples = Kurin::fromCSV(storage_path('app/example.csv'), ['id', 'name', 'slug', 'description']);

        DB::table('examples')->insert($examples);
    }
}
```

### Parameters

[](#parameters)

Kurīn expects two parameters, the path to the CSV file and the array containing the desired key strings. The keys need to be in the order you want the CSV matched to.

Kurīn however supports a third optional parameter, an array of strings that will be appended to the array as keys after the CSV fields and have their value set to [Carbon](http://github.com/briannesbitt/Carbon) timestamps.

##### Carbon Example

[](#carbon-example)

```
use jtkendall\Kurin;

$results = Kurin::fromCSV('data/example.csv', ['id', 'name'], ['created_at', 'updated_at']);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Recently: every ~433 days

Total

7

Last Release

706d ago

PHP version history (3 changes)v0.0.1PHP ^7.2

v0.0.6PHP ^7.2 | ^8.0

v0.0.7PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bb8b95c533c5156705c75d3302dd1409ab1715cdb23ab402edad70372a75fd6?d=identicon)[jtkendall](/maintainers/jtkendall)

---

Top Contributors

[![jtkendall](https://avatars.githubusercontent.com/u/46183?v=4)](https://github.com/jtkendall "jtkendall (18 commits)")

---

Tags

carboncsvlaravelphpseederlaraveldatabasecsvarrays

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jtkendall-kurin/health.svg)

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

PHPackages © 2026

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