2017 © Pedro Peláez
 

library symfony-seed-command

Symfony simple seed command

image

sonrac/symfony-seed-command

Symfony simple seed command

  • Wednesday, July 4, 2018
  • by sonrac
  • Repository
  • 1 Watchers
  • 1 Stars
  • 461 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 20 % Grown

The README.md

Build Status StyleCI, (*1)

Scrutinizer Build Scrutinizer Scrutinizer Code Coverage codecov Packagist Latest Unstable Version License Total Downloads Monthly Downloads Daily Downloads composer.lock, (*2)

Install

composer require sonrac/symfony-seed-command

Introduction

The package is designed to fill the database with data bypassing migrations., (*3)

Usages for silex or symfony

Add to console application command sonrac\SeedCommand, as example, for silex:, (*4)


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

Create seed:

Seed class must be implement sonrac\SimpleSeed\SeedInterface, (*5)

Predefined seed classes

  • sonrac\SimpleSeed\SimpleSeed

Simple seed for data insert. Define getTable for table name and getData for get data., (*6)

Insert would be run automatically, (*7)

  • 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, (*8)

Insert would be run automatically, (*9)

The Versions

04/07 2018

dev-master

9999999-dev

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii

04/07 2018

dev-analysis-XNkJZv

dev-analysis-XNkJZv

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii

04/07 2018

1.1

1.1.0.0

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii

04/07 2018

dev-analysis-86Kgvn

dev-analysis-86Kgvn

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii

04/07 2018

1.0

1.0.0.0

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii

06/02 2018

0.6

0.6.0.0

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii

06/02 2018

0.5

0.5.0.0

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii

06/02 2018

0.4

0.4.0.0

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii

06/02 2018

0.3

0.3.0.0

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii

06/02 2018

0.2

0.2.0.0

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii

06/02 2018

0.1

0.1.0.0

Symfony simple seed command

  Sources   Download

MIT

The Requires

 

The Development Requires

by Sergii Donii