zimtronic / randomuser-generator
dev-master
2016-02-23 01:42 UTC
Requires
- php: >=5.3
- guzzlehttp/guzzle: ~5.0
Requires (Dev)
- phpunit/phpunit: 4.5.0
This package is not auto-updated.
Last update: 2025-01-12 09:44:54 UTC
README
PHP Random User Generator
Install
Install via composer
{ "require": { "randomuser/generator" : "dev-master" } }
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