PHPackages                             wieni/wmdummy\_data - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wieni/wmdummy\_data

AbandonedArchivedDrupal-module[Utility &amp; Helpers](/categories/utility)

wieni/wmdummy\_data
===================

Provides Drupal services and Drush 9 commands for easy creation of dummy data.

4.0.2(2y ago)05.7k1[1 issues](https://github.com/wieni/wmdummy_data/issues)MITPHPPHP ^7.3 || ^8.0

Since Apr 1Pushed 2y ago8 watchersCompare

[ Source](https://github.com/wieni/wmdummy_data)[ Packagist](https://packagist.org/packages/wieni/wmdummy_data)[ RSS](/packages/wieni-wmdummy-data/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (23)Used By (0)

wmdummy\_data
=============

[](#wmdummy_data)

[![Latest Stable Version](https://camo.githubusercontent.com/cc800078586cf7746c94162d6249bf534500f176fd66cd1ee009cd57d952ea48/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d64756d6d795f646174612f762f737461626c65)](https://packagist.org/packages/wieni/wmdummy_data)[![Total Downloads](https://camo.githubusercontent.com/471231161c01a2df303c88b75ca9a4e43376359f81d8947a6a73b3820890450b/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d64756d6d795f646174612f646f776e6c6f616473)](https://packagist.org/packages/wieni/wmdummy_data)[![License](https://camo.githubusercontent.com/b941349b46534a8c87e0ac219b236dacf5c4fc1960a4d789b0a0f6ac2db912ee/68747470733a2f2f706f7365722e707567782e6f72672f7769656e692f776d64756d6d795f646174612f6c6963656e7365)](https://packagist.org/packages/wieni/wmdummy_data)

> Provides Drupal services and Drush 9 commands for easy creation of dummy data.

Installation
------------

[](#installation)

This package requires PHP 7.1 and Drupal 8.7.7 or higher. It can be installed using Composer:

```
 composer require wieni/wmdummy_data
```

How does it work?
-----------------

[](#how-does-it-work)

### Creating factories and states

[](#creating-factories-and-states)

To learn more about how to define your factory and state classes, please refer to the [`wieni/wmmodel_factory`](https://github.com/wieni/wmmodel_factory) docs.

In order to have access to the following functionality, you need to extend [`EntityFactoryBase`](src/EntityFactoryBase.php) or [`EntityStateBase`](src/EntityStateBase.php) instead of the classes provided by `wmmodel_factory`.

#### Generate content using [`wieni/wmcontent`](https://github.com/wieni/wmcontent)

[](#generate-content-using-wieniwmcontent)

To generate content for an entity using the `wmcontent` module, make your generator implement [`ContentGenerateInterface`](src/ContentGenerateInterface.php).

##### Example

[](#example)

```
