zhan3333/alicloudapi

There is no license information available for the latest version (v1.0.1) of this package.

ali cloud api

v1.0.1 2019-12-26 12:37 UTC

This package is auto-updated.

Last update: 2023-01-27 12:42:34 UTC


README

安装

composer require zhan3333/alicloudapi

配置

ALI_CLOUD_API_VERIFY_ID_CARD_APP_CODE=
ALI_CLOUD_API_VERIFY_ID_CARD_LOG_CHANNEL=
# none, success, failed
ALI_CLOUD_API_VERIFY_ID_CARD_FAKE_TYPE=

使用

use Zhan3333\AliCloudApi\AliVerifyIdCardService;

$service = app(AliVerifyIdCardService::class);
$result = $service->verify('张三', '420222199212040000');
// boolean 是否验证通过
dump($result['valid']);
// 不通过时的原因
dump($result['reason']);