Skip to content

mops1k/dbal-fixtures

 
 

Repository files navigation

Doctrine DBAL fixtures

Build Status Latest Stable Version Latest Unstable Version License SensioLabsInsight

Fixtures management using YAML files. It supports: foreign key references, and generation of fake data.

Installation

Install this package using composer

$ composer require comphppuebla/dbal-fixtures

Documentation

The following yml file will insert 3 rows into the table stations using random values generated by Faker for all the columns

stations:
    station_[1..3]:
        name: "${company}"
        address_line_1: "${streetAddress}"
        location: "${city}"
        coordinates: "`PointFromText('POINT(${latitude} ${longitude})')`"
        created_at: "${date('Y-m-d H:i:s', 'yesterday')}"
        last_updated_at: "${date('Y-m-d H:i:s')}"

Please visit the documentation page for more details.

Contribute

Please refer to CONTRIBUTING for information on how to contribute to this package.

License

Released under the MIT License.

About

Fixtures management with Doctrine DBAL

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.7%
  • Makefile 0.3%