PHP Faker Provider: Provide fake data to test shopping pages

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-09-03 (7 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 16 This week: 16All time: 10,376 This week: 11Up
Version License PHP version Categories
fakerprovider 1.0MIT/X Consortium ...5PHP 5, E-Commerce, Testing
Description Author
This package is specific mainly for applications used in Russian Federation Russian Federation .

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.

Picture of Insolita
  Performance   Level  
Name: Insolita <contact>
Classes: 8 packages by
Country: Russian Federation Russian Federation
Innovation award
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));
    //....
});

  Files folder image Files  
File Role Description
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file Readme.md Doc. Documentation
Plain text file ShopProvider.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:16
This week:16
All time:10,376
This week:11Up
For more information send a message to info at phpclasses dot org.