Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 663 Bytes

readme.md

File metadata and controls

32 lines (24 loc) · 663 Bytes

Faker Food Names

This package helps you get fancy-pancy foodnames in Faker! Pietje Pizza? Berend Barbeque?

Setup

composer require dejury/faker-food-names

Installation

After adding this into your project, you can initialize the provider by doing:

<?php
require 'vendor/autoload.php';

$faker = \Faker\Factory::create();
$faker->addProvider(new \Dejury\FakerFoodNames\Provider\FoodName($faker));

Usage

You can easily get a food name by executing:

echo $faker->foodName->fullName; // Andre Andijvie
echo $faker->foodName->firstName; // Andre
echo $faker->foodName->lastName; // Andijvie

Enjoy

Enjoy your meal!