Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

faker

8 sites Security covered
View on drupal.org

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
1 month ago
Release cadence
135 days
Stability
0% stable

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