matusstafura/faker-commerce

A PHP lib to generate dummy data for ecommerce

Maintainers

Package info

github.com/matusstafura/faker-commerce

Type:lib

pkg:composer/matusstafura/faker-commerce

Statistics

Installs: 169

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2022-10-14 13:01 UTC

This package is auto-updated.

Last update: 2026-03-14 20:15:40 UTC


README

Generates dummy data related mostly for ecommerce use.

Install the package

composer require matusstafura/faker-commerce

Usage

use FakerCommerce\Faker\FakerFactory;

// Use a factory to initialize
$faker = FakerFactory::create();

$faker->availability();
// "out of stock"

$faker->breadcrumbs(4, ">");
// "Radio>Instruments>Materials & Supplies>Accessories"

$faker->category();
// "Action Figures"

$faker->color();
// "Coral"

$faker->condition();
// "Very Good"

$faker->name();
// leather shorts

$faker->payment();
// "cash on delivery"

$faker->price();
// "557.00"

$faker->review();
// "Expensive for the quality."

$f->getAllMethods();
// lists all available methods

Tests

Run the tests with Pest PHP

composer test

License

The MIT License (MIT). Please see License File for more information.

Contribution

Contributions are welcome and will be fully credited. Please, add tests if required.

Support

You can leave a star.

Security

If you discover any security-related issues, please email us instead of using the issue tracker.

TODO

Please see TODO.md file.