jupicose/faker-fictional-name

Fictional name generator for fzaninotto/Faker

dev-master 2018-12-27 20:35 UTC

This package is auto-updated.

Last update: 2025-06-28 11:42:02 UTC


README

Generate fictional names in PHP using fzaninotto/Faker.

Installation

Add the FakerFictionalName library to your composer.json file:

composer require jupicose/faker-fictional-name

Usage

To use this with Faker, you must add the FakerFictionalName\FictionalName class to the Faker generator:

<?php

$faker = \Faker\Factory::create();
$faker->addProvider(new \FakerFictionalName\Provider\en_US\FictionalName($faker));

$faker->fictionalName; // A randomly generated fictional name.