insolita/fakerprovider

Faker Provider for Russian Shop - product titles, models, materials,units,sizes, categories, attributes, trademarks

1.0.0 2017-07-18 23:57 UTC

This package is auto-updated.

Last update: 2024-10-11 16:06:22 UTC


README

Генератор категорий, назвний товаров, материалов, размеров, брендов и аттибутов товаров

  composer require "insolita\fakerprovider":"~1.0"
 $faker = \Faker\Factory::create();
 $faker->addProvider(insolita\faker\ShopProvider::class);

 $faker->productUnit();
 $faker->productModel();
 $faker->productSize2d();
 $faker->productSize3d();
 $faker->productTitle();
 $faker->productCategory();
 $faker->productMaterial();
 $faker->productAttribute();
 $faker->productTrademark();

// 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));
    //....
});