Download the PHP package arraypress/wp-faker without Composer
On this page you can find all versions of the php package arraypress/wp-faker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arraypress/wp-faker
More information about arraypress/wp-faker
Files in arraypress/wp-faker
Package wp-faker
Short Description A lightweight WordPress library for generating fake data for seeding and testing
License GPL-2.0-or-later
Homepage https://github.com/arraypress/wp-faker/
Informations about the package wp-faker
Faker
Generate plausible data for seeding a development site or a demo.
What it does
A plugin is easier to build against a hundred orders than against none, and
screenshots of an empty table sell nothing. Filling a site by hand takes an
afternoon, and 'Test Customer 1' shows every layout bug except the ones
real data has.
This generates names, emails, prices, dates and the rest, weighted so the spread looks like a real store rather than a uniform random one.
Features
- Generate names, emails, phone numbers and companies that look real
- Generate prices in minor units, so nothing has to be converted afterwards
- Pick a value with weights, so most orders are complete and a few failed
- Get a date in the past, or between two points, for a believable history
- Pull a real id from the site — a user, post or attachment that exists
- Generate many at once, for seeding a table in one go
Installation
Quick start
Seeding a customer:
The weights are the useful part: a seeded table where every status is equally likely does not look like anything, and hides the layout problems a realistic spread shows up.
Requirements
- PHP 8.3 or later
- WordPress 7.1 or later
License
GPL-2.0-or-later