PHPackages                             hnhdigital-os/laravel-seed-from-file - 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-seed-from-file

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

hnhdigital-os/laravel-seed-from-file
====================================

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

1.0.0(8y ago)13251MITPHPPHP &gt;=7.0.10

Since Sep 15Pushed 8y agoCompare

[ Source](https://github.com/hnhdigital-os/laravel-seed-from-file)[ Packagist](https://packagist.org/packages/hnhdigital-os/laravel-seed-from-file)[ RSS](/packages/hnhdigital-os-laravel-seed-from-file/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (2)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/188418ccae09f2a73f34425e5024d383f33739e4c7914a2f40f8a7e941c92769/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d736565642d66726f6d2d66696c652f762f737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-seed-from-file) [![Total Downloads](https://camo.githubusercontent.com/49e1a220b010621c69a629725e263c0f305a732d361e807a0a36776c75236208/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d736565642d66726f6d2d66696c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/hnhdigital-os/laravel-seed-from-file) [![Latest Unstable Version](https://camo.githubusercontent.com/92ca6b431286aa304470637fe678d474d8edf0f76dcdef91ea1cbc3868fc9d77/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d736565642d66726f6d2d66696c652f762f756e737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-seed-from-file) [![License](https://camo.githubusercontent.com/4f9a8e4b5730841e1a6cf113281e737e2097906df3f202baf54276ab8b5c80d1/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d736565642d66726f6d2d66696c652f6c6963656e73652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-seed-from-file)

[![Build Status](https://camo.githubusercontent.com/dd728a34de9e1ff9d52e88d36f2ac6d7829fe9a00d15bf8281b7f873f1adc00f/68747470733a2f2f7472617669732d63692e6f72672f686e686469676974616c2d6f732f6c61726176656c2d736565642d66726f6d2d66696c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hnhdigital-os/laravel-seed-from-file) [![StyleCI](https://camo.githubusercontent.com/0642e216d1eaea5b6800a4bd974a113b8fa69936f0ba1c41b852a2f9b567743e/68747470733a2f2f7374796c6563692e696f2f7265706f732f37363930373230332f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/76907203) [![Test Coverage](https://camo.githubusercontent.com/01955a852ffaddf2358a98dbe265fffa81efe2ec2c6004bcfac328886c73773e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d736565642d66726f6d2d66696c652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-seed-from-file/coverage) [![Issue Count](https://camo.githubusercontent.com/611e3c840518232e98a534230c8adeffb56584239e97893f369ba6c51561a97d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d736565642d66726f6d2d66696c652f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-seed-from-file) [![Code Climate](https://camo.githubusercontent.com/1d8f78629a927b9ebdc32fe3ce9a279939b6e3ea0a19a9ab7daa916977019989/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d736565642d66726f6d2d66696c652f6261646765732f6770612e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-seed-from-file)

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

Install
-------

[](#install)

Via composer:

`$ composer require-dev hnhdigital-os/laravel-seed-from-file ~1.0`

This package autoloads from Laravel 5.5.

For Laravel 5.4 and below, enable the service provider by editing config/app.php:

```
    'providers' => [
        ...
        HnhDigital\LaravelSeedFomFile\ServiceProvider::class,
        ...
    ];
```

Usage
-----

[](#usage)

### Raw SQL

[](#raw-sql)

`# php artisan db:seed-from-raw {dir} {--connection}`

- {dir} - A file or a directory.
- {--connection} - Set the connection that will be used when importing. Defaults to `Config::get('default')`.

### CSV

[](#csv)

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

- {dir} - A file or a directory.
- {--connection} - Set the connection that will be used when importing. Defaults to `Config::get('default')`.

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Rocco Howard](https://github.com/therocis)
- [Lucas Mezêncio](https://github.com/lucasmezencio)
- [All Contributors](https://github.com/hnhdigital-os/laravel-seed-from-file/contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

3162d ago

### 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 (20 commits)")[![lucasmezencio](https://avatars.githubusercontent.com/u/472412?v=4)](https://github.com/lucasmezencio "lucasmezencio (6 commits)")

---

Tags

phplaraveldbseed

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hnhdigital-os-laravel-seed-from-file/health.svg)

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

###  Alternatives

[nwidart/db-exporter

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

37839.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.

6230.1k3](/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)
