Skip to content

v1.4.0 — Commerce Faker Provider

Latest

Choose a tag to compare

@DavidLambauer DavidLambauer released this 22 Apr 04:38
· 14 commits to main since this release
309bc00

What's new

$faker->productName(), ->productAdjective(), ->productMaterial(), ->product(), ->productDepartment() — FakerJS's commerce module, ported to PHP and registered on every Faker generator this module hands out.

Seeded product names now read Fresh Bronze Chair / Sleek Gold Tuna / Handcrafted Rubber Pizza instead of Dolor Sit Amet. Category names come from the curated upstream department list (Books, Automotive, Jewelery, …) instead of a hardcoded 20-entry list with a lorem suffix.

Installation

composer require runasroot/module-seeder:^1.4
bin/magento setup:upgrade

Fully backward compatible with 1.3.x. No new composer requires. FakerFactory::__construct() gained an optional argument; existing callers work unchanged.

Scope

  • en_US wordlists only in v1 — other locales silently fall back to English.
  • Wordlists ported verbatim from @faker-js/faker (MIT) at commit 9e2c0e391b436f56ff54ad89d02efa9982406389. Attribution in NOTICE; refresh guide in src/Faker/Provider/Data/Commerce/README.md.

See CHANGELOG.md for the full entry.