3neti/form-handler-kyc
Composer 安装命令:
composer require 3neti/form-handler-kyc
包简介
KYC/identity verification handler for form flow system using HyperVerge
README 文档
README
A Form Flow Manager plugin for identity verification using HyperVerge KYC API.
Features
✅ External redirect to HyperVerge mobile app
✅ Callback handling from HyperVerge
✅ Status polling for async verification results
✅ Contact-level KYC persistence (reusable across flows)
✅ Auto-registration with Form Flow Manager
✅ Integration with 3neti/hyperverge package
Installation
composer require 3neti/form-handler-kyc
Usage
{ handler: 'kyc', config: { title: 'Identity Verification', description: 'Verify your identity to continue' } }
Configuration
The package uses existing HyperVerge environment variables:
HYPERVERGE_BASE_URL=https://ind.idv.hyperverge.co/v1 HYPERVERGE_APP_ID=your_app_id HYPERVERGE_APP_KEY=your_app_key HYPERVERGE_URL_WORKFLOW=onboarding # Optional KYC_POLLING_INTERVAL=5 # seconds KYC_AUTO_REDIRECT_DELAY=2 # seconds
Requirements
- PHP 8.2+
- Laravel 12+
- 3neti/hyperverge package
- HTTPS (required by HyperVerge)
- Mobile device with camera (for user)
How It Works
Unlike other handlers (location, selfie, signature), KYC involves:
- Initiation: User clicks "Start Identity Verification"
- Redirect: User redirected to HyperVerge mobile app
- Verification: User completes ID + selfie verification
- Callback: HyperVerge redirects back to app
- Polling: Status page polls for results every 5 seconds
- Completion: On approval, flow continues automatically
Contact-Level KYC
KYC status is stored on the Contact model, not per-flow:
- Once verified, contact can reuse KYC across multiple flows
- KYC data stored in
metaJSON column (schemaless) - Fields:
kyc_status,kyc_transaction_id,kyc_onboarding_url, etc.
Testing
cd packages/form-handler-kyc
composer install
vendor/bin/pest
Routes
The package registers these routes automatically:
POST /form-flow/{flow_id}/kyc/initiate- Start KYC flowGET /form-flow/{flow_id}/kyc/callback- Handle HyperVerge callbackGET /form-flow/{flow_id}/kyc/status- Poll KYC status (AJAX)
License
MIT
Author
3neti
3neti/form-handler-kyc 适用场景与选型建议
3neti/form-handler-kyc 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.09k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 3neti/form-handler-kyc 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 3neti/form-handler-kyc 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-24