kisphp / faker-en
dev-main
2021-11-10 22:52 UTC
Requires
- php: >=7.4
- kisphp/faker: dev-master
Requires (Dev)
- phpunit/phpunit: ~9.5
- symfony/var-dumper: ~3.4|~5.0
This package is auto-updated.
Last update: 2024-11-05 09:32:33 UTC
README
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();