snlbaral / faker-ecommerce
Ecommerce products names generate using fakerphp/faker
Installs: 6 844
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.4.0
- fakerphp/faker: ^1.9.1
README
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();