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

4.0.0 2024-10-18 18:29 UTC

This package is auto-updated.

Last update: 2024-11-21 17:10:40 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

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