Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kos-v/randomuser-client
- Owner: kos-v
- License: mit
- Created: 2022-01-23T16:51:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-25T23:27:19.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T22:22:53.447Z (about 1 month ago)
- Topics: client, randomuser, randomuser-api
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();```