dejury/faker-food-names

Creates (Dutch) Fake names to be used in Faker. Can be used to generate persons like: "Pietje Pizza", "Barry Barbeque", "Steven Steengrill"

1.0.1 2021-08-10 09:28 UTC

This package is auto-updated.

Last update: 2024-12-10 17:13:22 UTC


README

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!