PHP Classes

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 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 21 All time: 10,426 This week: 432Up
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
Age: 36
All time rank: 3695102 in Russian Federation Russian Federation
Week rank: 241 Up12 in Russian Federation Russian Federation Up
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:21
This week:0
All time:10,426
This week:432Up
For more information send a message to info at phpclasses dot org.