Simple library for getting data from randomuser.me
service.
composer require kosv/randomuser-client:^1.0.0
<?php
use Kosv\RandomUser\Client\{Client, QueryBuilder};
use Kosv\RandomUser\Transport\CurlTransport;
$client = new Client(new CurlTransport());
$query = new QueryBuilder();
$query->setIncludeFields(['name', 'email'])->setPage(3)->setMaxResult(100);
$response = $client->request($query);
$users = $response->getUsers();
$info = $response->getInfo();