Install via composer
{
"require": {
"randomuser/generator" : "1.0.*"
}
}
Example:
<?php
$gen = new \RandomUser\Generator();
$user = $gen->getUser();
print($user->getName());
See test/RandomUserTest.php for working examples
Run tests using:
$ phpunit test
More examples: http://www.philipwhitt.com/blog/2014/09/php-random-user-generator/40
Randomuser.me Documentation: http://randomuser.me/documentation.html