kisphp / faker
Fake data generator inspired by fzaninotto/faker
0.1.1
2021-10-20 10:52 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ~9.5
- symfony/var-dumper: ~3.4|~5.0
This package is auto-updated.
Last update: 2024-11-05 16:52:24 UTC
README
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();