randomuser / generator
Installs: 2 805
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 8
Open Issues: 1
Requires
- php: >=5.3
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: 4.5.0
This package is auto-updated.
Last update: 2024-11-06 08:34:14 UTC
README
PHP Random User Generator
Install
Install via composer
{ "require": { "randomuser/generator" : "1.0.*" } }
Simple PHP client to randomuser.me
Example:
<?php $gen = new \RandomUser\Generator(); $user = $gen->getUser(); print($user->getName());
See test/RandomUserTest.php for working examples
Unit Tests
Run tests using:
$ phpunit test
Helpful Links
More examples: http://www.philipwhitt.com/blog/2014/09/php-random-user-generator/40
Randomuser.me Documentation: http://randomuser.me/documentation.html