Skip to content

andrewnicols/moodle-datagenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

moodle-datagenerator

This is a data generator which attempts to set up pseudo-realistic data.

The created dataset includes:

  • users
  • course categories
  • courses
  • and events

Instructions

Copy the smartdata.php file to the root of your Moodle checkout and run it from the CLI.

This can be run multiple times to update the existing dataset.

If you also want to enrol the admin into some courses, run smartdata.php --admin.

Notes

All users are created with the password x.

Username Categories Courses
adam 2017
bert FST
colin Chemistry
diane CHEM101 (teacher), CHEM102 (teacher), Music Society
emily CHEM102 (teacher)
fred Physics
gemma PHYS101 (teacher)
hannah PHYS101 (teacher), PHYS102 (teacher)
indianna FASS
james History
kenneth HIST100 (teacher), Music Society
lauren HIST101 (teacher)
mary Politics
niamh POLI100 (teacher), Cinema
oscar PHIL100 (teacher), Cinema
penny CHEM100, CHEM101, Music Society (teacher)
queenie HIST100, HIST101, POLI100, Hiking Club
rodney PHYS101, PHYS101, CHEM101, Music Scoiety (teacher), Cinema
sally POLI100, PHIL100, HIST100, HIST101
trevor CHEM101, CHEM102, PHYS101, PHYS102
una CHEM101, CHEM102, POLI100, Music Society, Cinema (teacher)
victor PHYS101, PHYS102, POLI100, Hiking Club (teacher)
william HIST100, HIST101, POLI100, PHIL100, Hiking Club
xanthia POLI100, PHIL100, HIST100, Cinema
yarloo POLI100, PHIL100, HIST100, Music Society
zain Students Union
james Chemistry + Maths
rachel Chemistry + Physics
jess Chemistry + Politics
john Physics + Maths
melissa Chemistry + Maths
bennie Chemistry + Maths + Politics
todd Maths

TODO

  1. Add activities and their events to the generator
  2. Document which users have which access
  3. Add User events
  4. Add Event subscriptions
  5. Switch away from Lorem Ipsum
  6. Add more users
  7. Add more courses and categories
  8. Improve documentation

About

Pseudo-realistic data generator for Moodle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages