comphppuebla/dbal-fixtures

Fixtures management with Doctrine DBAL

4.1.1 2022-01-27 03:12 UTC

This package is auto-updated.

Last update: 2024-03-27 08:04:41 UTC


README

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.