PHPackages                             soyuka/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. soyuka/seed-bundle

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

soyuka/seed-bundle
==================

Seed helper through symfony commands

2.0.7(8y ago)62.3k3MITPHPPHP &gt;=7.0.0

Since Jul 15Pushed 4y ago1 watchersCompare

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

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

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

[](#symfonydoctrine-seed-bundle)

[![Build Status](https://camo.githubusercontent.com/e2d0775d43dab80ed4c6c4cd2290337ccb72fe1eb7766fa8e03a0bae5c15684e/68747470733a2f2f7472617669732d63692e6f72672f736f79756b612f5365656442756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/soyuka/SeedBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/05500ce460b20eaf3c2fbad09701fb86f53ee70377772874137bd230fed270ec/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62656334616664612d346138372d343632322d386165632d3630636536363239363631372f6d696e692e706e67)](https://insight.sensiolabs.com/projects/bec4afda-4a87-4622-8aec-60ce66296617)

/!\\ Starting 01/01/18 I'll not actively maintain this project anymore. I'll merge PR's if any but I'm not using this anymore /!\\

Maintained fork:

Why
---

[](#why)

I needed something to load seed data that needed to stay in database. The only symfony bundle that could be used for this is the [DoctrineFixturesBundle](https://github.com/doctrine/DoctrineFixturesBundle). Those are fixtures, and should be used for testing only. Data included with this are removed/purged when the command is launched. Here, I want the data to be persistent. You can use it as a fixture bundle too by `unloading` data, but it is not it's main purpose.

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

```
