2017 © Pedro Peláez
 

library onfido

A library to interact with the Onfido REST API

image

favor/onfido

A library to interact with the Onfido REST API

  • Tuesday, January 19, 2016
  • by rubenrangel
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4,538 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

Onfido

Code Climate Test Coverage Build Status, (*1)

A Composer library for Onfido's REST API, (*2)

Requirements

PHP 5.5, (*3)

Installation

1) Add to Composer file, (*4)

{
    "require": {
        "favor/onfido": "dev-master"
    }
}

2) Install, (*5)

composer install

Use

Almost all calls will go through the Onfido client to generate and update content., (*6)

$client = new Onfido\RestClient(ONFIDO_TOKEN);

Applicants

Applicants are the subjects of checks and reports in Onfido., (*7)

Create

The only required fields when creating an applicant are first_name and last_name., (*8)

$params = array(
    'title' => 'Mr',
    'first_name' => 'Tester',
    'middle_name' => 'Test',
    'last_name' => 'McTesterson',
    'email' => 'test@mail.com',
    'gender' => 'male',
    'dob' => '1990-11-23',
    'telephone' => '123-456-7890',
    'mobile' => '987-654-3210',
    'country' => 'usa',
    'addresses' => array(
        array(
            'flat_number' => '13',
            'building_number' => '2411',
            'street' => 'Main Avenue',
            'sub_street' => null,
            'state' => 'TX',
            'town' => 'Austin',
            'postcode' => '78702',
            'country' => 'usa',
            'start_date' => '1999-02-28',
            'end_date' => null
        )
    ),
    'id_numbers' => array(
        array(
            'type' => 'ssn',
            'value' => '433-54-3937'
        )
    )
);

$applicant = $client->createApplicant($params);

Retrieve

$applicant = $client->retrieveApplicant('1030303-123123-123123');

Checks

All checks require the existence of an applicant in the Onfido system., (*9)

Identity Check

Create

Identity checks that are run on U.S. residents require the applicant record to have an e-mail address, date of birth, and a social security number., (*10)

$identity_report = $client->runIdentityCheck('1030303-123123-123123');

The Versions

19/01 2016

dev-master

9999999-dev https://github.com/favordelivery/onfido

A library to interact with the Onfido REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ruben Rangel

api rest check background onfido

12/01 2016

v0.1.0-beta6

0.1.0.0-beta6 https://github.com/favordelivery/onfido

A library to interact with the Onfido REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ruben Rangel

api rest check background onfido

02/11 2015

v0.1.0-beta5

0.1.0.0-beta5 https://github.com/favordelivery/onfido

A library to interact with the Onfido REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ruben Rangel

api rest check background onfido

06/10 2015

v0.1.0-beta4

0.1.0.0-beta4 https://github.com/favordelivery/onfido

A library to interact with the Onfido REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ruben Rangel

api rest check background onfido

02/10 2015

v0.1.0-beta3

0.1.0.0-beta3 https://github.com/favordelivery/onfido

A library to interact with the Onfido REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ruben Rangel

api rest check background onfido

02/10 2015

v0.1.0-beta2

0.1.0.0-beta2 https://github.com/favordelivery/onfido

A library to interact with the Onfido REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ruben Rangel

api rest check background onfido

21/09 2015

v0.1.0-beta1

0.1.0.0-beta1 https://github.com/favordelivery/onfido

A library to interact with the Onfido REST API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ruben Rangel

api rest check background onfido