PHPackages                             tray2/csvcommand - 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. tray2/csvcommand

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

tray2/csvcommand
================

v0.1.1(2y ago)14MITPHPPHP ^8.0

Since Oct 31Pushed 2y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (12)Versions (3)Used By (0)

CsvCommand
----------

[](#csvcommand)

CsvCommand is a package for Laravel that converts a CSV file into a Laravel database seeder class.

It is to be used as a dev dependency, and is not intended to be used in production to import csv files into your application.

It is not yet added to packigist, but you can still manually install it if you want. **Beware!** That it is still in beta state, so please report any bugs found.

### Use

[](#use)

`php artisan make:csv-seeder   --noheader --separator=,`

It is assumed that the csv has a header row, if it doesn't pass the `--noheader` flag.

It is also assumed that the separator is a comma, if it is not pass the `--separator=` flag.

If no csv file, or model given it will prompt you for the file, and show you a list of available models.

It is for now assumed that your column names match the headers in the csv file. The plan is to add another flag to prompt you for the correct headers and override the ones in the file.

The model you choose must use the `HasFactory` trait, and it also must have a corresponding factory file.

```
make:csv-seeder {file : The path to the CSV file}
                {model : The model to create the seeder for}
                {--no-header? : The CSV doesn't contain headers}
                {--separator=, : The separator used}";

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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

Total

2

Last Release

859d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/681e86b12a53aebd3d7d6a85ef0d2448c6ab9ab8580d62d884a0876fa8f144f2?d=identicon)[Tray2](/maintainers/Tray2)

---

Top Contributors

[![Tray2](https://avatars.githubusercontent.com/u/696364?v=4)](https://github.com/Tray2 "Tray2 (1 commits)")

---

Tags

csvdatabaselaravelseederlaraveldatabasecsvseeder

###  Code Quality

TestsPest

Static AnalysisPsalm

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tray2-csvcommand/health.svg)

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[kdabrow/seeder-once

Run your laravel seeders only once

21177.3k](/packages/kdabrow-seeder-once)[aimeos/laravel-nestedset

Nested Set Model for Laravel

3714.4k6](/packages/aimeos-laravel-nestedset)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

492.8k](/packages/itpathsolutions-dbstan)

PHPackages © 2026

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