Generate fake data for testing.

Installs: 1 710

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 2

Forks: 7

Open Issues: 3



1.0.1 2021-05-19 21:01 UTC


MIT license Latest Stable Version Total Downloads Donate

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 user_count, discussion_count, posts_count, date_start and date_interval. If you pass zero for users or discussions, you can provide user_ids and/or 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!


composer require migratetoflarum/fake-data:*

A MigrateToFlarum extension

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 !