Download the PHP package ravage84/cakephp-fake-seeder without Composer
On this page you can find all versions of the php package ravage84/cakephp-fake-seeder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cakephp-fake-seeder
CakePHP Fake Seeder
A CakePHP shell to seed your database with fake and/or fixed data.
Uses Faker to generate the fake data. Uses shell tasks for implementing specific seeders. Organizes logical groups of seeders in custom seeder shells/suites.
Why should I use it?
You are wondering why you should use this plugin instead of using Faker directly or creating fake data on your own?
This plugin...
- keeps you from doing the repetitive work (DRY)
- provides you three working modes (manual faking to fully automatic guessing)
- helps you to stick to conventions, by following CakePHP's "Convention over Configuration" principle
- still provides you flexible configuration
- reduces documentation needs
- is properly covered by unit tests
- is easy to learn
- is extensible
Installation
Requirements
- PHP >= 5.4
- CakePHP 2.x (tested with 2.6.2, 2.7.3)
Installation via composer
`
Installation alternatives
Refer to the CakePHP CookBook section How To Install Plugins.
CakePHP Version Support
This plugin only supports CakePHP 2.x.
Versioning
The releases of this plugin are versioned using SemVer.
Configuration
Set the configuration key FakeSeeder.seedable
to true, by adding
Configure::write('FakeSeeder.seedable', true);
to your boostrap code.
How to use
After installing and configuring the plugin, you can invoke the shell
by executing php Console/cake.php FakeSeeder.seeder -h
.
`
- See ExampleSeederShell.php for an example how to create a custom seeder shell.
- See ExampleSeederTask.php for an example how to create a custom seeder task.
Contributing
See CONTRIBUTING.md
Changelog
See CHANGELOG.md
TODOs
- Improve Documentation
- Simplify integration of 3rd party data provider
- Implement seeder shell task baking
- Check possibility to use code for TestFixtures, like gourmet/faker
License
This plugin is licensed under the MIT License.
Attribution
This project was inspired by the works of others, such as: