homeful/kwyc-check
最新稳定版本:v1.5.6
Composer 安装命令:
composer require homeful/kwyc-check
包简介
Homeful KwYC Check Package
关键字:
README 文档
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
composer require homeful/kwyc-check
You can publish and run the migrations with:
php artisan vendor:publish --tag="kwyc-check-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="kwyc-check-config"
This is the contents of the published config file:
return [ 'campaign_url' => env('CAMPAIGN_URL', 'https://kwyc-check.net/campaign-checkin/9ccef822-4209-4e0a-bb40-232da5cafdf1') ];
ENV Setup
'HYPERVERGE_APP_BASEURL' = ""
'HYPERVERGE_APP_ID' = ""
'HYPERVERGE_APP_KEY' = ""
'HYPERVERGE_DEFAULT_FILESTORE' = ""
'ENGAGESPARK_APIKEY' = ""
'ENGAGESPARK_ORG_ID' = ""
ENV Setup
There are api end points.
- the payload for process-lead is webhook post from kwyc-check via pipedream
- the payload for attach-media is an array of urls point to images
- the payload for generate-qr is an array of inputs with default values
Route::post('process-lead', ProcessLeadController::class) ->prefix('api') ->middleware('api') ->name('process-lead'); Route::post('attach-media/{lead}', AttachLeadMediaController::class) ->prefix('api') ->middleware('api') ->name('attach-media'); Route::post('generate-qr', GenerateQRCodeController::class) ->prefix('api') ->middleware('api') ->name('generate-qr'); Route::post('validate/id', [HypervergeController::class, 'validate_id']) ->prefix('api') ->middleware('api') ->name('id validation'); Route::post('validate/id/base64', [HypervergeController::class, 'validate_id']) ->prefix('api') ->middleware('api') ->name('id validation'); Route::post('check/liveliness', [HypervergeController::class, 'validate_live_url']) ->prefix('api') ->middleware('api') ->name('liveliness validation'); Route::post('check/liveliness/base64', [HypervergeController::class, 'validate_live_base64']) ->prefix('api') ->middleware('api') ->name('liveliness validation'); Route::post('check/faceverify', [HypervergeController::class, 'face_verify']) ->prefix('api') ->middleware('api') ->name('face match verification'); Route::post('check/faceverify/base64', [HypervergeController::class, 'face_verify_base64']) ->prefix('api') ->middleware('api') ->name('face match verification'); Route::post('create/contact', [EngageSparkController::class, 'formatContactBody']) ->prefix('api') ->middleware('api') ->name('face verification');
To get the data from lead
use Homeful\KwYCCheck\Data\LeadData; use Homeful\KwYCCheck\Models\Lead; $lead = Lead::factory()->forContact()->create(); $data = LeadData::fromModel($lead);
Optionally, you can publish the views using
php artisan vendor:publish --tag="kwyc-check-views"
Usage
use Homeful\KwYCCheck\Facades\KYC; $svg = KYC::generateCampaignQRCOde(query_params: ['code' => 'ABC-123','identifier'=>'DEF-456','choice'=>'GHI-789']); echo $svg; //qr code points to https://kwyc-check.net/campaign-checkin/9ccef822-4209-4e0a-bb40-232da5cafdf1?code=ABC-111&identifier=DEF-222&choice=GHI-333 ```validate/id``` $jsonInput =[{ "imageURL" : "", //should be inside storage folder -- ex. app/public "referenceCode":"", //alpha-numeric "countryId":"",//country code check documentation link for list https://documentation.hyperverge.co/OCR_country_docs_list "documentId":""//id type check documentation link for list https://documentation.hyperverge.co/OCR_country_docs_list }]; ```or``` $jsonInput =[{ "base64Img" : "", //base64 image "referenceCode":"", //alpha-numeric "countryId":"",//country code check documentation link for list https://documentation.hyperverge.co/OCR_country_docs_list "documentId":""//id type check documentation link for list https://documentation.hyperverge.co/OCR_country_docs_list }]; ```check/liveliness``` $jsonInput =[{ "imageURL":"",//should be inside storage folder -- ex. app/public "referenceCode":"",//alpha-numeric }]; ```check/faceverify``` $jsonInput =[{ "imageURL":"",//should be inside storage folder -- ex. app/public "referenceCode":"",//alpha-numeric "imagePath":"",//path inside storage -- ex. app/public "type":"" //selfie or id }]; ```or``` $jsonInput =[{ "base64Img":"",//base64 image "referenceCode":"",//alpha-numeric "imagePath":"",//path inside storage -- ex. app/public "type":"" //selfie or id }]; ```Engagespark``` use Homeful\KwYCCheck\Http\Controllers\EngageSparkController; ```create contact``` $jsonInput = [{ "mobile": "", //number "firstName": "", //alpha-numeric "lastName": "",//alpha-numeric "groupId": [] ////alpha-numeric array }] EngageSparkController::saveContact($jsonInput);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
homeful/kwyc-check 适用场景与选型建议
homeful/kwyc-check 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.67k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 08 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「Homeful」 「kwyc-check」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 homeful/kwyc-check 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 homeful/kwyc-check 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 homeful/kwyc-check 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
统计信息
- 总下载量: 2.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-20