snlbaral/faker-ecommerce

Ecommerce products names generate using fakerphp/faker

2.0.0 2021-02-15 05:56 UTC

This package is auto-updated.

Last update: 2025-06-15 16:05:27 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Ecommerce Products names generate using fakerphp/faker

Installation

Add the FakerEcommerce library to your composer.json file:

composer require snlbaral/faker-ecommerce

Init

<?php
include 'vendor/autoload.php';

Usage

To use this with Faker, you must add the FakerEcommerce\Ecommerce class to the Faker generator:

<?php

$faker = \Faker\Factory::create();
$faker->addProvider(new \FakerEcommerce\Ecommerce($faker));

// Generator
$faker->televisions();
$faker->mobilePhones();
$faker->laptops();
$faker->cameras();
$faker->mensClothing();
$faker->womensClothing();
$faker->jewelry();
$faker->watches();