New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

worksome/laravel-onfido

A Laravel wrapper for the Onfido PHP client
459,056 1
Install
composer require worksome/laravel-onfido
Latest Version:v6.4.0
PHP:^8.4
Laravel:12 · 13
Older releases:8 – 11
License:MIT
Last Updated:Mar 2, 2026
Links: GitHub  ·  Packagist
Maintainer: andrevalentin

Onfido Laravel

A Laravel wrapper for the Onfido PHP API Client.

Installation

Install using composer:

composer require worksome/laravel-onfido

Publish the configuration file with the following command:

php artisan vendor:publish --provider "Worksome\Onfido\OnfidoServiceProvider"

Configuration

Remember to add your Onfido API key to your .env file.

ONFIDO_API_KEY=api_sandbox.ABC...

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.

Remember to import the Onfido facade, by adding use Worksome\Onfido\Facades\Onfido; at the top of your file.

To create an applicant and send a check:

use Onfido\Model\ApplicantBuilder;
use Onfido\Model\CheckBuilder;
use Worksome\Onfido\Facades\Onfido;

$applicant = Onfido::createApplicant(new ApplicantBuilder([
    'first_name' => 'John',
    'last_name' => 'Doe',
    'email' => 'johndoe@example.org',
]));

$onfidoCheck = Onfido::createCheck(new CheckBuilder([
    'applicant_id' => $applicant['id'],
    'report_names' => ['right_to_work'],
    'applicant_provides_data' => true,
]));

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 applicant or check:

/** @var \Onfido\Model\ApplicantResponse $applicant */
$applicant->getId();

/** @var \Onfido\Model\CheckResponse $onfidoCheck */
$onfidoCheck->getId();

// The responses can also be accessed as an arrayable.
$applicant['id'];
$onfidoCheck['id'];
$onfidoCheck['status'];
$onfidoCheck['form_uri'];

To see all possible return data check the official PHP package documentation.

Related Packages

andrevalentin/laravel-onfido

A Laravel wrapper for the Onfido PHP client

170,030 4
avto-dev/identity-laravel

IDEntity for Laravel

31,538 3
filafly/filament-identity-column

A column for Filament Tables to which combines an avatar, name and description.

12,345 7
goldnead/statamic-identity-contracts

Identity foundation for Statamic addons: a stable Identity value object and reso...

7,009 0

Version History

Version Released PHP Laravel License
v6.4.0 ^8.4 ^12.0 || ^13.0 MIT
v6.3.0 ^8.4 ^12.0 || ^13.0 MIT
v6.2.0 ^8.3 ^11.0 || ^12.0 MIT
v6.1.0 ^8.2 ^10.0 || ^11.0 MIT
v6.0.0 ^8.2 ^10.0 || ^11.0 MIT