Fixtures management using YAML files. It supports: foreign key references, and generation of fake data.
Install this package using composer
$ composer require comphppuebla/dbal-fixtures
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.
Please refer to CONTRIBUTING for information on how to contribute to this package.
Released under the MIT License.