Skip to content
Fixtures management with Doctrine DBAL
PHP PLpgSQL Makefile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config refactor: Rename SQLite configuration files Apr 26, 2018
data
docs
src style: Ran CS fixer in the src folder Apr 27, 2018
tests test: Add test for MySQL custom type POINT Apr 27, 2018
.gitignore
.travis.yml
CHANGELOG.md
CODE-OF-CONDUCT.md
CONTRIBUTING.md
LICENSE docs: Update year in LICENSE Jan 23, 2018
Makefile docs: Add contributing and code of conduct files Apr 27, 2018
README.md
composer.json
couscous.yml docs: Add documentation about platform types Apr 27, 2018
index.md
phpunit.xml.dist

README.md

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.

You can’t perform that action at this time.