Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kos-v/randomuser-client

Client for getting data from randomuser.me service
https://github.com/kos-v/randomuser-client

client randomuser randomuser-api

Last synced: 8 days ago
JSON representation

Client for getting data from randomuser.me service

Awesome Lists containing this project

README

        

# Randomuser.me Client

[![Build Status](https://app.travis-ci.com/kos-v/randomuser-client.svg?branch=main)](https://app.travis-ci.com/kos-v/randomuser-client)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/kos-v/randomuser-client/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/kos-v/randomuser-client/?branch=main)

Simple library for getting data from [`randomuser.me`](https://randomuser.me/) service.

## Installation

```shell
composer require kosv/randomuser-client:^1.0.0
```

## Example

```php
setIncludeFields(['name', 'email'])->setPage(3)->setMaxResult(100);

$response = $client->request($query);
$users = $response->getUsers();
$info = $response->getInfo();

```