PHPackages                             jlapp/smart-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. jlapp/smart-seeder

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

jlapp/smart-seeder
==================

Smart Seeder adds the same methology to seeding that is currently used with migrations in order to let you seed in batches, seed to production databases or other environments, and to rerun seeds without wiping out your data.

5.0.x-dev(11y ago)1903.1k52[2 issues](https://github.com/slampenny/SmartSeeder/issues)[2 PRs](https://github.com/slampenny/SmartSeeder/pulls)MITPHPPHP &gt;=5.4.0

Since Feb 3Pushed 10y ago6 watchersCompare

[ Source](https://github.com/slampenny/SmartSeeder)[ Packagist](https://packagist.org/packages/jlapp/smart-seeder)[ RSS](/packages/jlapp-smart-seeder/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (3)Used By (0)

SmartSeeder for Laravel
=======================

[](#smartseeder-for-laravel)

### For Laravel 5, please use the [5.0 branch](https://github.com/slampenny/SmartSeeder/tree/5.0)!

[](#for-laravel-5-please-use-the-50-branch)

### For Laravel 4, please use the [4.2 branch](https://github.com/slampenny/SmartSeeder/tree/4.2)!

[](#for-laravel-4-please-use-the-42-branch)

Seeding as it is currently done in Laravel is intended only for dev builds, but what if you're iteratively creating your database and want to constantly flush it and repopulate it during development? What if you want to seed a production database with different data from what you use in development? What if you want to seed a table you've added to a database that is currently in production with new data?

Features
========

[](#features)

- Allows you to seed databases in different environments with different values.
- Allows you to "version" seeds the same way that Laravel currently handles migrations. Running `php artisan seed` will only run seeds that haven't already been run.
- Prompts you if your database is in production.
- Allows you to run multiple seeds of the same model/table
- Overrides Laravel's seeding commands. SmartSeeder will fire when you run ```
    php artisan db:seed

    ```

    or ```
    php artisan migrate:refresh --seed

    ```
- You can run a single seed file with the --file option. php artisan seed:run --file=seed\_2015\_05\_27\_030017\_UserSeeder

Use
===

[](#use)

When you install SmartSeeder, various artisan commands are made available to you which use the same methodology you're used to using with Migrations.

seed:runRuns all the seeds in the smartSeeds directory that haven't been run yet.seed:makeMakes a new seed class in the environment you specify.seed:rollbackRollback doesn't undo seeding (which would be impossible with an auto-incrementing primary key). It just allows you to re-run the last batch of seeds.seed:resetResets all the seeds.seed:refreshResets and re-runs all seeds.seed:installYou don't have to use this... it will be run automatically when you call "seed"Installation
============

[](#installation)

- Add require: "jlapp/smart-seeder": "dev-master" to your composer.json and run an update to bring it in (or run composer require jlapp/smartseeder).
- Add 'Jlapp\\SmartSeeder\\SmartSeederServiceProvider' to your providers array in app/config/app.php
- Run php artisan vendor:publish to push config files to your config folder if you want to override the name of the seeds folder or the name of the table where seeds are stored

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

4023d ago

Major Versions

4.2.x-dev → 5.0.x-dev2015-06-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7809881?v=4)[Jordan Lapp](/maintainers/slampenny)[@slampenny](https://github.com/slampenny)

---

Top Contributors

[![slampenny](https://avatars.githubusercontent.com/u/7809881?v=4)](https://github.com/slampenny "slampenny (5 commits)")

---

Tags

laraveldatabaseseedingtableseederseedsmart

### Embed Badge

![Health badge](/badges/jlapp-smart-seeder/health.svg)

```
[![Health](https://phpackages.com/badges/jlapp-smart-seeder/health.svg)](https://phpackages.com/packages/jlapp-smart-seeder)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[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)
