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: 4 months 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 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-25T23:27:19.000Z (almost 4 years ago)
- Last Synced: 2025-01-25T14:15:42.089Z (11 months 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
[](https://app.travis-ci.com/kos-v/randomuser-client)
[](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();
```