Faker Provider package made by mine.
composer require lesstif/faker-restaurant
or manual add
local repository
"repositories": [
{
"type": "path",
"url": "./faker-restaurant"
},
]
remote repository
"repositories": [
{
"type": "vcs",
"url": "https://github.com/lesstif/faker-restaurant"
}
]
<?php
$faker = \Faker\Factory::create();
$lp = new Lesstif\FakerProvider\ko_KR\Restaurant($faker);
$faker->addProvider($lp);
// Generator
$faker->foodName(); // A random Food Name
$faker->beverageName(); // A random Beverage Name