randomuser/generator

v1.0.2 2019-02-05 15:40 UTC

This package is auto-updated.

Last update: 2024-11-06 08:34:14 UTC


README

Build Status Latest Stable Version

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