PHPackages                             sonrac/symfony-seed-command - 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. [CLI &amp; Console](/categories/cli)
4. /
5. sonrac/symfony-seed-command

ActiveLibrary[CLI &amp; Console](/categories/cli)

sonrac/symfony-seed-command
===========================

Symfony simple seed command

1.7.3(6y ago)213.3k↓13.3%1MITPHPPHP &gt;=7.2

Since Feb 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sonrac/symfony-seed-command)[ Packagist](https://packagist.org/packages/sonrac/symfony-seed-command)[ RSS](/packages/sonrac-symfony-seed-command/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (30)Used By (1)

[![Build Status](https://camo.githubusercontent.com/c0497d2e0ae8bbe858e2889776370bf7d5f87dad46ed44d2c8686bde24392d14/68747470733a2f2f7472617669732d63692e6f72672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sonrac/symfony-seed-command)[![StyleCI](https://camo.githubusercontent.com/4c597fec7fcdbe6359ade5b99c7ee6aeaeae5dc0be9882982850a5ce3ddc19d9/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130353332323837332f736869656c643f6272616e63683d6d6173746572267374796c653d666c6174)](https://styleci.io/repos/105322873)

[![Scrutinizer Build](https://camo.githubusercontent.com/b3d5461a885d37ac1d114a1e0555c29ef181e72fb473fe1c985105e471a5a58a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f6261646765732f6275696c642e706e673f623d6d6173746572)](https://camo.githubusercontent.com/b3d5461a885d37ac1d114a1e0555c29ef181e72fb473fe1c985105e471a5a58a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f6261646765732f6275696c642e706e673f623d6d6173746572)[![Scrutinizer](https://camo.githubusercontent.com/72454352e2ccdb33cd95df4aa39418d4e14d31c3ef96e053f0c0ada8689e3712/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/72454352e2ccdb33cd95df4aa39418d4e14d31c3ef96e053f0c0ada8689e3712/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/d4d90daf0221e94b24b45d90b1dac25baaf3148d6be9c6e57f419dc0d90cc302/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/d4d90daf0221e94b24b45d90b1dac25baaf3148d6be9c6e57f419dc0d90cc302/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f6261646765732f636f7665726167652e706e673f623d6d6173746572)[![codecov](https://camo.githubusercontent.com/42bab52e0da27500f51069de88a7df9f2f48413fba96723e1e3f6df0058d9ed0/68747470733a2f2f636f6465636f762e696f2f67682f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/sonrac/symfony-seed-command)[![Packagist](https://camo.githubusercontent.com/38753a99d639712424103fb8347fdd7dc42e71fd38621d91f1ea292c177a6830/68747470733a2f2f706f7365722e707567782e6f72672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f762f737461626c652e737667)](https://camo.githubusercontent.com/38753a99d639712424103fb8347fdd7dc42e71fd38621d91f1ea292c177a6830/68747470733a2f2f706f7365722e707567782e6f72672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f762f737461626c652e737667)[![Latest Unstable Version](https://camo.githubusercontent.com/534062ac927e5c17116e88ba020397b89157ebb548131c3f57064d77ae60a5f9/68747470733a2f2f706f7365722e707567782e6f72672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f762f756e737461626c65)](https://packagist.org/packages/sonrac/symfony-seed-command)[![License](https://camo.githubusercontent.com/9a620853617846029638eef010462930cecfe27d7e433ddab3a631d56872cb52/68747470733a2f2f706f7365722e707567782e6f72672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f6c6963656e73652e737667)](https://camo.githubusercontent.com/9a620853617846029638eef010462930cecfe27d7e433ddab3a631d56872cb52/68747470733a2f2f706f7365722e707567782e6f72672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f6c6963656e73652e737667)[![Total Downloads](https://camo.githubusercontent.com/83b82d86dbac755c37da7d5e09841153e4b84acee8af7f3da08b746cbf28bd4a/68747470733a2f2f706f7365722e707567782e6f72672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f646f776e6c6f616473)](https://packagist.org/packages/sonrac/symfony-seed-command)[![Monthly Downloads](https://camo.githubusercontent.com/dcf4dc94ea7acb4ba47ad8857eb04fa61a70822a32dc9e1bc0ece4760e442810/68747470733a2f2f706f7365722e707567782e6f72672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f642f6d6f6e74686c79)](https://packagist.org/packages/sonrac/symfony-seed-command)[![Daily Downloads](https://camo.githubusercontent.com/e2b607b6a29d79e2d5d5a21be7cd4ce26a2cbea169f3f9d1e010caef7e27d92a/68747470733a2f2f706f7365722e707567782e6f72672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f642f6461696c79)](https://packagist.org/packages/sonrac/symfony-seed-command)[![composer.lock](https://camo.githubusercontent.com/ec3db619c3a934f7f4d5bb5643f0126e3a8172bb29156b6bb108f9842dbe8ec2/68747470733a2f2f706f7365722e707567782e6f72672f736f6e7261632f73796d666f6e792d736565642d636f6d6d616e642f636f6d706f7365726c6f636b)](https://packagist.org/packages/sonrac/symfony-seed-command)

Install
-------

[](#install)

```
composer require sonrac/symfony-seed-command
```

Introduction
------------

[](#introduction)

The package is designed to fill the database with data bypassing migrations.

Usages for silex or symfony
---------------------------

[](#usages-for-silex-or-symfony)

Add to console application command `sonrac\SeedCommand`, as example, for silex:

```
$app->add(new sonrac\SimpleSeed\SeedCommand(null, $app->get('db')));
```

Create seed:
------------

[](#create-seed)

Seed class must be implement `sonrac\SimpleSeed\SeedInterface`

Predefined seed classes
-----------------------

[](#predefined-seed-classes)

- `sonrac\SimpleSeed\SimpleSeed`

Simple seed for data insert. Define `getTable` for table name and `getData`for get data.

Insert would be run automatically

- `sonrac\SimpleSeed\SimpleSeedWithCheckExists`

Seed with check exists inserted data before insert. Define `getTable` for table name and `getData`for get data. Also, define `getWhereForRow` which is where filter for select data before insert

Insert would be run automatically

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

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

Recently: every ~7 days

Total

28

Last Release

2221d ago

Major Versions

0.6 → 1.02018-07-04

PHP version history (3 changes)0.6PHP &gt;=5.3

1.0PHP &gt;=5.5

1.7.1PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1245037f65b027a2c38d7aa0281cd04f53ac27eaf695a60da7311254fcc99350?d=identicon)[sonrac](/maintainers/sonrac)

---

Top Contributors

[![sonrac](https://avatars.githubusercontent.com/u/3766459?v=4)](https://github.com/sonrac "sonrac (61 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sonrac-symfony-seed-command/health.svg)

```
[![Health](https://phpackages.com/badges/sonrac-symfony-seed-command/health.svg)](https://phpackages.com/packages/sonrac-symfony-seed-command)
```

###  Alternatives

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/storefront

Storefront for Shopware

684.6M236](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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