PHP code example of snlbaral / faker-ecommerce
1. Go to this page and download the library: Download snlbaral/faker-ecommerce library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
snlbaral / faker-ecommerce example snippets
$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();