PHPackages                             tommus/sprout - 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. tommus/sprout

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

tommus/sprout
=============

Grow your Laravel seeders.

1.0.1(7y ago)39MITPHP

Since Feb 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tmus/sprout)[ Packagist](https://packagist.org/packages/tommus/sprout)[ RSS](/packages/tommus-sprout/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Sprout
======

[](#sprout)

Grow your Laravel seeders.

Sprout allows you to write more modular, reuseable seeders for specific scenarios in your app.

For example, creating a "full event" by creating an event and ten bookings. Or, creating an "empty event" by creating just an event.

Usage
-----

[](#usage)

1. Pull in the package with composer:

```
composer require tommus/sprout
```

Laravel will automatically discover the Sprout Service Provider, meaning you don't need to manually add it.

2. Publish the Sprout vendor files:

```
php artisan vendor:publish --tag=sprout
```

3. Create a new Sprout:

```
php artisan sprout:make Example
```

This will make a new Sprout at `App/Sprouts/Example.php`. In the `run()`method, you can add any factories or calls you'd like.

You can call another Sprout by using `$this->call(Sprout::class)` from within the called Sprout. This happens recursively.

Optionally, you can add a `beforeRun()` and `afterRun()` method to a Sprout to build up and tear down specific config.

You can add a `protected $description = 'Custom Title';` to a Sprout.

4. Add the Sprout to `config/sprout.php`:

```
return [
  'list' => [
    \App\Sprouts\Example::class,
  ],
];
```

5. Run the Sprout:

```
php artisan sprout:run
```

This allows you to choose a Sprout to run from the list defined in the Sprout config.

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

2

Last Release

2748d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3391005?v=4)[Thomas Smith](/maintainers/tmus)[@tmus](https://github.com/tmus)

---

Top Contributors

[![tmus](https://avatars.githubusercontent.com/u/3391005?v=4)](https://github.com/tmus "tmus (9 commits)")

### Embed Badge

![Health badge](/badges/tommus-sprout/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[coryrose/livewire-tables

An extension for Livewire that allows you to effortlessly scaffold datatables with optional pagination, search, and sort.

8941.5k](/packages/coryrose-livewire-tables)

PHPackages © 2026

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