Skip to content

Generating more realistic fake data with Devel Generate

Problem/Motivation

I have a need to be able to generate content but with more realistic fake data. Currently the data generated by the Devel module (via the Devel Generate sub-module) doesn't quite provide data that is realistic by default. So for example if I had First and Last Name fields, I'd like to have realistic looking names or maybe when I have date fields, I want to be able to specify the date range it can generate or let's say I have an ID Number field that has a particular format. Is there a way to currently do that with the Devel Generate module?

Proposed resolution

I am wondering if it might be possible to integrate a library like FakerPHP into the Devel module. Maybe allow developers to provide some config to say for each field on a content type they can specify what they would like to use to generate the dummy/fake data. Has this been considered before?