stefanius/laravel-fixtures

Load YAML fixtures in your Laravel project

0.1 2016-07-07 19:32 UTC

This package is auto-updated.

Last update: 2024-12-23 01:09:52 UTC


README

The Yaml fixture seeder for the Laravel Framework.

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Why this package?

The Seeder classes are very powerfull and to be honest: This package has a lot less options. Imagine that you have lists of data you want to seed. The problem only is that the Seeder classes needs to be programmed. With lots and lots of array's, in my opinion it will end up in large PHP files and hardly to read and maintain.

This package provides a Yaml structure, based per-table but you can make relationships between them. See therefore the examples.

Installation

To install this package on your Laravel project, you only have to add it to your Composer file. There is no need (and also impossible) to add a Facade or ServiceProvider.

shell> composer require stefanius/laravel-fixtures

Example data

When the documentation does not provide the information you needed or hoped for, you may want to check the example data. This data is also used to test the package and therefore it will give a good impression of the package. You can find the data: https://github.com/stefanius/laravel-fixtures/tree/master/testdata/database/fixtures

In progress

The package is almost stable but the readme.md file is still in progress. Keep in touch to see if there are any updates!

Badges

Some badges are handy to place them on top. But, in a time of 'badge-festing' I want to join the party, and some badges are a bit obscure.

Total Downloads Monthly Downloads Daily Downloads Build Status Latest Stable Version Latest Unstable Version License composer.lock