PHP Classes


Recommend this page to a friend!
  Classes of Insolita   PHP Faker Provider   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Faker Provider
Provide fake data to test shopping pages
Author: By
Last change:
Date: 2 years ago
Size: 900 bytes


Class file image Download

Faker Shop-data provider (Russian only)

????????? ?????????, ??????? ???????, ??????????, ????????, ??????? ? ????????? ???????

  composer require "insolita\fakerprovider":"~1.0"

 $faker = \Faker\Factory::create();


// in some cases, if you have faker instance as closure argument- add provider like

$factory->define(\App\Modules\Shop\Product::class, function (Faker\Generator $faker) {
    $faker->addProvider(new \insolita\faker\ShopProvider($faker));