jimchen / identity-verify
Identity verify SDK.
v1.0.0
2018-09-17 12:19 UTC
Requires
- php: >=5.5
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.8
This package is auto-updated.
Last update: 2024-12-18 03:25:44 UTC
README
Identity verify SDK.
Installing
$ composer require jimchen/identity-verify -vvv
Usage
require __DIR__ . '/vendor/autoload.php'; use JimChen\Identity\Identity; use JimChen\Identity\Exceptions\NoGatewayAvailableException; $identity = new Identity([ 'default' => [ 'gateways' => [ 'juhe' ] ], 'gateways' => [ 'juhe' => [ 'key' => 'your app key', 'openid' => 'your openid', ] ] ]); try { var_dump($identity->verify('your name', 'chinese mainland identity card number')); } catch (NoGatewayAvailableException $e) { var_dump($e->getResults()); }
License
MIT