承接 favor/onfido 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

favor/onfido

Composer 安装命令:

composer require favor/onfido

包简介

A library to interact with the Onfido REST API

README 文档

README

Code Climate Test Coverage Build Status

A Composer library for Onfido's REST API

Requirements

PHP 5.5

Installation

  1. Add to Composer file
{
    "require": {
        "favor/onfido": "dev-master"
    }
}
  1. Install
composer install

Use

Almost all calls will go through the Onfido client to generate and update content.

$client = new Onfido\RestClient(ONFIDO_TOKEN);

Applicants

Applicants are the subjects of checks and reports in Onfido.

Create

The only required fields when creating an applicant are first_name and last_name.

$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.

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.

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

统计信息

  • 总下载量: 4.57k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固