werkbot / werkbot-seeder
Development database seeder
Installs: 1 363
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- php: ^8.1
- silverstripe/cms: ^5
- silverstripe/framework: ^5
Requires (Dev)
- code-lts/doctum: ^5.5
README
A silverstripe database seeder that utilizes Fixtures to generate DataObjects. Seeders can be used to quickly generate site structure, populate blog articles, fill in page content, etc...
Installation
composer require werkbot/werkbot-seeder
Requirements
- Silverstripe ^4.0
Setup
- You will need to run
/dev/build
- You must be in development or test mode (
SS_ENVIRONMENT_TYPE="dev"
). Be aware that the records generated by these seeders are added directly to your current database; they are not added to a fresh test database. - You may now run seeder tasks in your web browser from
/dev/Tasks
- You may run seeder tasks through the command line as well
vendor/silverstripe/framework/sake dev/tasks/Werkbot-Seeder-SeederBuildTask
Usage
Documentation
Generate documentation using Doctum:
./vendor/bin/doctum.php update doctum.config.php
View the api documentation:
start doctum_build/index.html