Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Faker

6 sites Security covered
View on drupal.org

This module integrates the PHP Faker library to generate realistic sample content for your Drupal site. It works with Devel Generate to easily create fake but believable names, addresses, emails, and other data, making your sample content more meaningful.

Use the PHP Faker library to generate more meaningful sample content.

Devel Generate is great for creating a lot of sample content in a hurry, but sometimes you want samples that are more meaningful, or closer to the content you expect users to generate. This is where Faker comes in.

This module has no hard dependency on Devel Generate, but to benefit from all the features you will have to enable both.

Faker is a PHP library that generates fake data for you

Faker (the library) can generate real looking names, addresses, emails, domains and more. Faker (the module) combines the library with quick content creation abilities provided by Devel Generate, to give you the power to easily generate real looking sample content.

GitHub mirror: https://github.com/baikho/drupal-faker

Relevant modules

  • Devel - See its submodule "Devel Generate"

Drupal 7

Installation w/ Drush make

The module includes a Drush make file that will automatically download the necessary library when installing via Drush make. Just add faker to your project's Drush make file.

Manual installation

Usage

  • Implement hook_faker_node_generate() from your module/feature. See faker.api.inc in the source for more info about the available hooks.
  • Run devel generate either from drush or the admin UI.

Examples

function hook_faker_node_generate($node, $faker) {
  if ($node->type === 'bio') {
    $node->title = $faker->name;
    $node->field_email[LANGUAGE_NONE][0]['value'] = $faker->email;
    $node->field_phone[LANGUAGE_NONE][0]['value'] = $faker->phoneNumber;
  }
}

Drupal 8+

Installation

Just install as you would via composer and it will download the relevant Faker package.

Features

The 8.x-2.x and 3.x versions add "Faker Profile" config entities, that are out of the box available for use with the Devel Generate "Generate" tasks.

D8 Integration Demo

Activity

Total releases
4
First release
Jan 2025
Latest release
4 months ago
Releases (12 mo)
2
Maintenance
Active

Release Timeline

Releases

Version Type Release date
3.1.0-beta1 Pre-release Mar 1, 2026
3.1.x-dev Dev Mar 1, 2026
3.0.0-beta2 Pre-release Feb 8, 2025
3.0.0-beta1 Pre-release Jan 19, 2025