PHP code example of julien-dussaut / faker-pizza
1. Go to this page and download the library: Download julien-dussaut/faker-pizza 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/ */
julien-dussaut / faker-pizza example snippets
use JulienDussaut\FakerPizza\PizzaProvider;
$faker = Factory::create();
// Adding the provider to fakerphp
$faker->addProvider(new PizzaProvider($faker));
// Generate a random pizza name
$pizza = $faker->pizzaName(); // Output : Pizza napolitaine
// Generate a random pizza category
$pizzaCategory = $faker->category(); // Output : Américaines
// Generate a random ingredient
$ingredient = $faker->ingredient(); // Output : Aubergines