gam6itko/fakerphp-animal-provider

Additional plugin for fakerphp/faker that allows you to generate a random animal

1.1.1 2023-12-14 10:36 UTC

This package is auto-updated.

Last update: 2024-11-14 12:36:16 UTC


README

Plugin for FakerPHP/Faker

Installation

composer req gam6itko/fakephp-animal-provider

Usage

use Faker\Factory;
use Gam6itko\Faker\Provider\Animal;

$locale = 'en_US'
$generator = Factory::create($locale);
\Gam6itko\Faker\ProviderFactory::addProvider($generator, 'Animal', $locale)

echo $generator->animal() // 'cat'
echo $generator->adjectiveAnimal() // 'curious cat'