PHPackages                             hnhdigital-os/laravel-database-seeder - 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. hnhdigital-os/laravel-database-seeder

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

hnhdigital-os/laravel-database-seeder
=====================================

Provides the ability to import a file or files from a folder into your database.

1.1.0(6y ago)216MITPHPPHP ^7.2

Since Aug 13Pushed 6y agoCompare

[ Source](https://github.com/hnhdigital-os/laravel-database-seeder)[ Packagist](https://packagist.org/packages/hnhdigital-os/laravel-database-seeder)[ RSS](/packages/hnhdigital-os-laravel-database-seeder/feed)WikiDiscussions master Synced 3d ago

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

Laravel Seed From File
======================

[](#laravel-seed-from-file)

Provides the ability to import data (raw sql or CSV) from a file or from files found in the supplied folder.

[![Latest Stable Version](https://camo.githubusercontent.com/f62a033be159d3f53975a89eee5ced28155d59336aa334605518f452cf3c24da/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d64617461626173652d7365656465722f762f737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-database-seeder) [![Total Downloads](https://camo.githubusercontent.com/279a3caaf7395f800e0bf430d9f56cb21f54f4628dc2fd866128c8b4b32278cf/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d64617461626173652d7365656465722f646f776e6c6f6164732e737667)](https://packagist.org/packages/hnhdigital-os/laravel-database-seeder) [![Latest Unstable Version](https://camo.githubusercontent.com/b835c135ca06cd8b88bc9b1ac5aa7eb561162d1993d213e4985380dab6ff4d29/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d64617461626173652d7365656465722f762f756e737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-database-seeder) [![License](https://camo.githubusercontent.com/c17e0a86cb0bddb6e136ca9872a385e986e2115e64ed80d0f098dc3f7b80f9e9/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d64617461626173652d7365656465722f6c6963656e73652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-database-seeder)

[![Build Status](https://camo.githubusercontent.com/58ad9df84ab2a2c982790be81ea99f0f47b1bb76a12e23c88c73717bf8564c3c/68747470733a2f2f7472617669732d63692e6f72672f686e686469676974616c2d6f732f6c61726176656c2d64617461626173652d7365656465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hnhdigital-os/laravel-database-seeder) [![StyleCI](https://camo.githubusercontent.com/8e4b0011ea6133ad16daced6b0597c0b86823c23b702e482e9c8f87fcc03a478/68747470733a2f2f7374796c6563692e696f2f7265706f732f3230303937303030342f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/200970004) [![Test Coverage](https://camo.githubusercontent.com/0bfb1df1de97f019af083db5ad598bc4d42175938d74cc5ec010f25b47daa423/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d64617461626173652d7365656465722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-database-seeder/coverage) [![Issue Count](https://camo.githubusercontent.com/2b9176946c881de16b5bae17e1db1dde7170b2395447c371959cca353507305f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d64617461626173652d7365656465722f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-database-seeder) [![Code Climate](https://camo.githubusercontent.com/6128f297cd11f299b986b6357755894b8744bb67e226b02e650c10780c5bd423/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d64617461626173652d7365656465722f6261646765732f6770612e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-database-seeder)

This package has been developed by H&amp;H|Digital, an Australian botique developer. Visit us at [hnh.digital](http://hnh.digital).

Prerequisites
-------------

[](#prerequisites)

- PHP &gt;= 7.2
- Laravel &gt;= 5.8

Install
-------

[](#install)

Via composer:

`composer require hnhdigital-os/laravel-database-seeder ~1.0`

Usage
-----

[](#usage)

### CSV

[](#csv)

`# php artisan db:seed-from-csv {path?} {--connection}`

- {path} -A file or a directory of files to import.
- {--connection} - Set the connection that will be used when importing. Defaults to 'database.default'.

### SQL

[](#sql)

`# php artisan db:seed-from-sql {path?} {--connection}`

- {path} - A file or a directory of files to import.
- {--connection} - Set the connection that will be used when importing. Defaults to 'database.default'.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/hnhdigital-os/laravel-database-seeder/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Rocco Howard](https://github.com/therocis)
- [All Contributors](https://github.com/hnhdigital-os/laravel-database-seeder/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/hnhdigital-os/laravel-database-seeder/blob/master/LICENSE) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Total

2

Last Release

2489d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.0.10

1.1.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5270e3a3d1add4e39f12dfde3ce549999a26f759d7128056083ab07f475259f2?d=identicon)[bluora](/maintainers/bluora)

---

Top Contributors

[![RoccoHoward](https://avatars.githubusercontent.com/u/227896?v=4)](https://github.com/RoccoHoward "RoccoHoward (21 commits)")

---

Tags

phplaraveldbseed

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/hnhdigital-os-laravel-database-seeder/health.svg)

```
[![Health](https://phpackages.com/badges/hnhdigital-os-laravel-database-seeder/health.svg)](https://phpackages.com/packages/hnhdigital-os-laravel-database-seeder)
```

###  Alternatives

[nwidart/db-exporter

Export your database quickly and easily as a Laravel Migration and all the data as a Seeder class.

37739.1k](/packages/nwidart-db-exporter)[tomatophp/filament-translations

Manage your translation with DB and cache, you can scan your languages tags like trans(), \_\_(), and get the string inside and translate them use UI.

6333.2k3](/packages/tomatophp-filament-translations)[webparking/laravel-db-rebuild

A laravel package that allows for quick database rebuilds with presets.

448.8k](/packages/webparking-laravel-db-rebuild)[elimuswift/db-exporter

Export your database quickly and easily as a Laravel Migration and all the data as a Seeder class.

364.7k](/packages/elimuswift-db-exporter)

PHPackages © 2026

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