Replaces the default Faker with an extended Faker instance that adds
betterUnique() – unique() based on a key.
- PHP 100%
| .github/workflows | ||
| src | ||
| composer.json | ||
| README.md | ||
Faker betterUnique()
Better unique allows you to pass a key for separate unique generator instances:
$faker->betterUnique('user_id')->numberBetween(1, 1000);
Installation
You can install the package via composer:
composer require pxlrbt/faker-better-unique
Credits
License
The MIT License (MIT). Please see License File for more information.