Download the PHP package robertogallea/laravel-ui-faces without Composer
On this page you can find all versions of the php package robertogallea/laravel-ui-faces. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download robertogallea/laravel-ui-faces
More information about robertogallea/laravel-ui-faces
Files in robertogallea/laravel-ui-faces
Package laravel-ui-faces
Short Description Laravel package wrapping UI Faces API
License MIT
Informations about the package laravel-ui-faces
Laravel UI Faces
Laravel-ui-faces is a simple package for wrapping UI Faces API. It provides a fluent API for building request to UI Faces REST service and parse response.
1. Installation
For installing the package run the command
composer require robertogallea/laravel-ui-faces
2. Setup
The packages need a valid API key to be set in the UI_FACES_API_KEY
variable inside your .env
file.
Optionally, you can change the default API URL by setting the UI_FACES_API_URL
variable
It registers the UIFacesServiceProvider using laravel autodiscovery, in addition, if you want to use UIFaces Facade,
you need to register the following alias inside app.php
3. Usage
UI Faces can be used in several ways:
-
Using Facade:
-
Using IoC:
- Using Laravel Service Container:
UIFaces supports the following parameters:
- limit
- offset
- random
- from_age
- to_age
and the following parameter arrays;
- gender
- hairColor
- emotion
4. Issues, Questions and Pull Requests
You can report issues and ask questions in the issues section. Please start your issue with ISSUE:
and your question with QUESTION:
If you have a question, check the closed issues first.
To submit a Pull Request, please fork this repository, create a new branch and commit your new/updated code in there. Then open a Pull Request from your new branch. Refer to this guide for more info.