PHPackages                             spiral-packages/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. spiral-packages/database-seeder

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

spiral-packages/database-seeder
===============================

The package provides the ability to seed your database with data using seed classes

3.3.0(1y ago)231.4k↓10.8%6[2 PRs](https://github.com/spiral-packages/database-seeder/pulls)1MITPHPPHP ^8.1

Since Jun 10Pushed 1y ago3 watchersCompare

[ Source](https://github.com/spiral-packages/database-seeder)[ Packagist](https://packagist.org/packages/spiral-packages/database-seeder)[ Docs](https://github.com/spiral-packages/database-seeder)[ RSS](/packages/spiral-packages-database-seeder/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (17)Used By (1)

Database Seeder
===============

[](#database-seeder)

[![PHP](https://camo.githubusercontent.com/f99196ea702ef4ff9c1c04b59652662ab2fb02e2c4cb736cfe11a68f7113a9c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73706972616c2d7061636b616765732f64617461626173652d7365656465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spiral-packages/database-seeder)[![Latest Version on Packagist](https://camo.githubusercontent.com/3dd8eba1520286c29b2ad6ce3fb10fb9593bc829f541675f67cc2f523582c906/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73706972616c2d7061636b616765732f64617461626173652d7365656465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spiral-packages/database-seeder)[![GitHub Tests Action Status](https://camo.githubusercontent.com/1b224365ff4b713d501ea53a1394069962888130e5e23f1fd3642fbd7df9a2ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f73706972616c2d7061636b616765732f64617461626173652d7365656465722f72756e2d74657374733f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/spiral-packages/database-seeder/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/54487a9a080ebda128840f5ae898e030b9fe554bf309644a46f4cf628e7c7bb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73706972616c2d7061636b616765732f64617461626173652d7365656465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spiral-packages/database-seeder)

When you build apps that use databases, it's really important to make sure your database works right. This means checking if it stores, changes, and gives back data the way it's supposed to. But sometimes, testing databases can be tricky and a bit boring. You might have to write a lot of complicated commands and be very careful about how data is added or removed.

What the package offers
-----------------------

[](#what-the-package-offers)

1. **Easy Testing:** With Spiral, you don't need to deal with complex commands. The tools are simple to use, which means your tests are easier to write and understand.
2. **Different Ways to Reset Your Database:** After you test something, you need to make your database clean again for the next test. Spiral has different ways to do this, like the Transaction, Migration, Refresh, and SqlFile methods. Each one has its own way of working, so you can choose what fits best for your test.
3. **Seeders and Factories:** These are like shortcuts to fill your database with test data. This data looks like the real data you would use in your app. You can quickly set up the data you need for testing with these tools.
4. **Checking Your Database:** After you do something in your database, you want to make sure it worked right. Spiral's tools let you check if the data is there or not, and if your database structure is correct.

It's a great for any developer, no matter how much experience you have. They help make sure your database is doing what it should, which is really important for your app to work well.

Requirements
------------

[](#requirements)

Make sure that your server is configured with following PHP version and extensions:

- PHP 8.1+
- Spiral framework 3.7+

Documentation, Installation, and Usage Instructions
---------------------------------------------------

[](#documentation-installation-and-usage-instructions)

See the [documentation](https://spiral.dev/docs/testing-database) for detailed installation and usage instructions.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 61.5% 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 ~61 days

Recently: every ~83 days

Total

15

Last Release

579d ago

Major Versions

1.x-dev → 2.0.02022-06-20

2.x-dev → 3.0.02023-11-09

PHP version history (2 changes)1.x-devPHP ^8.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/773481?v=4)[Pavel Buchnev](/maintainers/butschster)[@butschster](https://github.com/butschster)

![](https://www.gravatar.com/avatar/e104cad59c07d048c0b3650db8a2fde19e496e5357ee1ce1a6b3a375cade5e8a?d=identicon)[msmakouz](/maintainers/msmakouz)

---

Top Contributors

[![msmakouz](https://avatars.githubusercontent.com/u/67324318?v=4)](https://github.com/msmakouz "msmakouz (91 commits)")[![butschster](https://avatars.githubusercontent.com/u/773481?v=4)](https://github.com/butschster "butschster (39 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![markinigor](https://avatars.githubusercontent.com/u/18714154?v=4)](https://github.com/markinigor "markinigor (4 commits)")[![alexey-shapilov](https://avatars.githubusercontent.com/u/5181326?v=4)](https://github.com/alexey-shapilov "alexey-shapilov (2 commits)")[![aquaminer](https://avatars.githubusercontent.com/u/17113289?v=4)](https://github.com/aquaminer "aquaminer (1 commits)")

---

Tags

seederspiralspiral-packagesdatabase-seeder

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spiral-packages-database-seeder/health.svg)

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

###  Alternatives

[spiral/temporal-bridge

Temporal integration package for Spiral Framework

58901.5k](/packages/spiral-temporal-bridge)[spiral/cycle-bridge

Cycle ORM integration package

18128.9k7](/packages/spiral-cycle-bridge)[timokoerber/laravel-json-seeder

Create and use JSON files to seed your database in your Laravel applications

4835.8k](/packages/timokoerber-laravel-json-seeder)[kdabrow/seeder-once

Run your laravel seeders only once

19160.9k](/packages/kdabrow-seeder-once)[eighty8/laravel-seeder

Versioned, environment-based Seeders in Laravel

1857.1k](/packages/eighty8-laravel-seeder)[woenel/prpcmblmts

Philippines region, province, cities/municipalities and barangays Laravel migration and table seeder.

2818.3k](/packages/woenel-prpcmblmts)

PHPackages © 2026

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