PHP code example of m-shbieb / faker-restaurant
1. Go to this page and download the library: Download m-shbieb/faker-restaurant library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
m-shbieb / faker-restaurant example snippets
$faker = \Faker\Factory::create();
$faker->addProvider(new \FakerRestaurant\Provider\ar_SA\Restaurant($faker));
// Generator
$faker->foodName(); // A random Food Name
$faker->beverageName(); // A random Beverage Name
$faker->dairyName(); // A random Dairy Name
$faker->vegetableName(); // A random Vegetable Name
$faker->fruitName(); // A random Fruit Name
$faker->meatName(); // A random Meat Name
$faker->sauceName(); // A random Sauce Name