kisphp/faker

Fake data generator inspired by fzaninotto/faker

0.1.1 2021-10-20 10:52 UTC

This package is auto-updated.

Last update: 2024-04-20 17:04:38 UTC


README

pipeline status coverage report

This is the core library of kisphp/faker. Please install kisphp/faker-{locale} instead

Installation

composer require kisphp/faker-en

Usage

<?php

require '/path/to/vendor/autoload.php';

$faker = \Kisphp\Faker\Factory::create();

// get a masculine name
echo $faker->person->firstNameMale;

// get a feminine name
echo $faker->person->firstNameFemale;

// get a random paragraph (generated from LoremIpsum)
echo $faker->text->randomParagraph();