Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2021-09-03 (7 days ago)  | | Not yet rated by the users | | Total: 16 This week: 16 | | All time: 10,376 This week: 11 |
|
Description | | Author |
This package can provide fake data to test shopping pages.
It provides a class that can return fake values for products that can be sold in shopping sites.
Currently it can return fake data for product unit, product model, product size in 2 or 3 dimensions, title, category, material, attribute and trademark. | |
 |
|
Innovation award
 Nominee: 5x |
|
Details
Faker Shop-data provider (Russian only)
????????? ?????????, ??????? ???????, ??????????, ????????, ??????? ? ????????? ???????
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));
//....
});
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.