PHPackages                             firesphere/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. [Testing &amp; Quality](/categories/testing)
4. /
5. firesphere/seeder

ActiveSilverstripe-vendormodule[Testing &amp; Quality](/categories/testing)

firesphere/seeder
=================

Simplified seeding of the database for testing purposes

0.1(8y ago)01.0kBSD-3-ClausePHPPHP &gt;=5.6.0

Since Feb 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Firesphere/silverstripe-seeder)[ Packagist](https://packagist.org/packages/firesphere/seeder)[ RSS](/packages/firesphere-seeder/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b8dbc6404b40dc4043f9937719faee8533b95469b572bfd6a9ab4e0a529deb4a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f466972657370686572652f73696c7665727374726970652d7365656465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Firesphere/silverstripe-seeder/?branch=master)[![Build Status](https://camo.githubusercontent.com/fbb9384ccd775a94653f378ac78274c4c4e851fff15b6b6b3076542225c473ba/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f466972657370686572652f73696c7665727374726970652d7365656465722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Firesphere/silverstripe-seeder/build-status/master)[![codecov](https://camo.githubusercontent.com/c9eee878917347fdbc94c1eb780e744838b8a3e6d161bdd81f7694fde30e0b3f/68747470733a2f2f636f6465636f762e696f2f67682f466972657370686572652f73696c7665727374726970652d7365656465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Firesphere/silverstripe-seeder)

SilverStripe Seeder
===================

[](#silverstripe-seeder)

*WARNING*
=========

[](#warning)

This will *not* create a test database for you! Do not run this against a production database!

Seed your database for Acceptance testing

Installation
============

[](#installation)

`composer require firesphere/seeder`

Usage
=====

[](#usage)

Create a seeder yml file somewhere in your project, with the same syntax as the standard PHPUnit tests. E.g.

```
Firesphere\Seeder\Tests\Mock\Page:
  page1:
    Title: The title
    Content: "Well, the way they make shows is, they make one show. That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that one show they decide if they're going to make more shows. Some pilots get picked and become television programs. Some don't, become nothing. She starred in one of the ones that became nothing."
```

Relations are defined the same way as in PHPUnit.

Then run the seeder

`vendor/bin/sake dev/tasks/seeder type=seed flush=all`

To unseed, run

`vendor/bin/sake dev/tasks/seeder type=seed flush=all`

This will destroy all data that is defined in your seeder yml.

You will need to run a database build before seeding, and after unseeding.

todo
====

[](#todo)

Integrate with Codeception/Behat to automatically seed on run

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

2999d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8497c885d84e4bf94b8e6136292aa602124a50bbbb4a14ab00e1423f232e7663?d=identicon)[Firesphere](/maintainers/Firesphere)

---

Tags

hacktoberfesttestingdatabasesilverstripeseeding

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[misantron/dbunit

DbUnit fork supporting PHPUnit 10/11/12

121.2M6](/packages/misantron-dbunit)[silverstripe/frameworktest

Aids core and module developers in testing their code against a set of sample data and behaviour.

17304.6k23](/packages/silverstripe-frameworktest)[code-distortion/adapt

A Laravel package that builds databases for your tests, improving their speed.

2835.5k](/packages/code-distortion-adapt)[sofa/eloquent-testsuite

Helpers for fast and reliable UNIT tests for your Eloquent Models with PHPUnit

10104.7k](/packages/sofa-eloquent-testsuite)[sheadawson/silverstripe-userswitcher

During testing, allows Admins to quickly switch to act as a different user in the system

164.6k](/packages/sheadawson-silverstripe-userswitcher)

PHPackages © 2026

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