PHPackages                             intechventures/seed-bundle - 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. intechventures/seed-bundle

AbandonedArchivedLibrary

intechventures/seed-bundle
==========================

Seed helper through symfony commands

2.0.10(5y ago)04MITPHPPHP &gt;=7.0.0

Since Jul 15Pushed 5y agoCompare

[ Source](https://github.com/InTechVentures/SeedBundle)[ Packagist](https://packagist.org/packages/intechventures/seed-bundle)[ RSS](/packages/intechventures-seed-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (6)Versions (18)Used By (0)

Symfony/Doctrine Seed Bundle
============================

[](#symfonydoctrine-seed-bundle)

Description
-----------

[](#description)

Loads seed data similar to Laravel seeders, ideal for creating test data that needs to persist in a database.

The only symfony bundle that could be used for this is the [DoctrineFixturesBundle](https://github.com/doctrine/DoctrineFixturesBundle) but these are fixtures and should be used with tests only as the data will not persist in the database.

This package could be used as a fixture bundle too by `unloading` data.

Installation
------------

[](#installation)

`composer require intechventures/seed-bundle`

Configuration
-------------

[](#configuration)

```
soyuka_seed:
  prefix: 'seed' #command prefix "seed:yourseedname"
  directory: 'Seeds' #default seed path: Bundle/Seeds
  separator: ':'
```

Building a Seed
---------------

[](#building-a-seed)

The `Seed` class is a `Command` and :

- Must extend `Soyuka\SeedBundle\Command\Seed`
- Must have a class name that ends by `Seed`
- Must call `setSeedName` in the configure method

```
