Generate fake data for testing.
This extension allows you to generate fake data for testing your forum.
You choose number of new users, discussions and posts.
If you do not create new users, random existing users will be picked as authors for new discussions and posts.
If you do not create new discussions, random existing discussions will be picked for new posts.
A new button is added on discussions if you want to generate replies to that discussion only.
The date seed is made of two options: start date will be parsed by
Carbon::parse, so it accepts dates in many formats (example
2021-01-01 15:00:00) as well as human time (example
2 days ago).
Date interval is in seconds.
The script can be called via the API at
/api/fake-data with parameters
If you pass zero for users or discussions, you can provide
discussion_ids to restrict which users/discussions can be picked.
tag_ids can be used to specify an array of tags to apply to all created discussions.
It's probably best to not install this on your production forum!
Use Bazaar or install manually:
composer require migratetoflarum/fake-data
composer update migratetoflarum/fake-data php flarum cache:clear
This is a free extension by MigrateToFlarum, an online forum migration tool (launching soon). Follow us on Twitter for updates https://twitter.com/MigrateToFlarum
Need a custom Flarum extension ? Contact Clark Winkelmann !