Download the PHP package andrevalentin/laravel-onfido without Composer
On this page you can find all versions of the php package andrevalentin/laravel-onfido. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andrevalentin/laravel-onfido
More information about andrevalentin/laravel-onfido
Files in andrevalentin/laravel-onfido
Package laravel-onfido
Short Description A Laravel wrapper for the Onfido PHP client
License MIT
Informations about the package laravel-onfido
The Onfido Laravel Package
The Laravel wrapper for the Onfido PHP API Client.
Installation
Install using composer:
In app.php in your Laravel application add the Service Provider under the providers array:
Also add the Class Alias under the aliases array:
Add a onfido.php config file in your config directory with the following content:
Configuration
Remember to add your Onfido API key to your .env
file.
Usage
I would always encourage anyone to use the official PHP package as reference, and this is simply a Laravel wrapper. However, I will provide an example on how to create an applicant.
Remeber to import the Onfido Facade, by adding use Onfido;
at the top of your file.
To create an applicant and send a check:
The above is all that is required to create an applicant and send the applicant a right to work check via Onfido.
You can then consult the results of the check as an array:
To see all possible return data check the official PHP package documentation over at https://github.com/onfido/api-php-client
All versions of laravel-onfido with dependencies
onfido/api-php-client Version ^5.2 || ^6.0
illuminate/support Version ^8.0