smile-identity/smile-identity-core
Composer 安装命令:
composer require smile-identity/smile-identity-core
包简介
The Official Smile Identity PHP library
README 文档
README
Smile Identity provides the best solutions for real time Digital KYC, identity verification, user onboarding, and user authentication across Africa. Our server side libraries make it easy to integrate us on the server-side. Since the library is server-side, you will be required to pass the images (if required) to the library.
If you haven’t already, sign up for a free Smile Identity account, which comes with Sandbox access.
Please see CHANGELOG.md for release versions and changes.
Features
The library exposes four classes namely; the WebApi class, the IDApi class, the Signature class, and the Utilities class.
The WebApi class has the following public methods:
submit_job- handles submission of any of Smile Identity products that requires an image i.e. Biometric KYC, Document Verification, SmartSelfieTM Authentication and Business Verification.get_web_token- handles generation of web token, if you are using the Hosted Web Integration.
The IDApi class has the following public method:
submit_job- handles submission of Enhanced KYC and Basic KYC.
The Signature class has the following public methods:
generate_signature- generate a signature which is then passed as a signature param when making requests to the Smile Identity serverconfirm_signature- ensure a response is truly from the Smile Identity server by confirming the incoming signature
The Utilities Class allows you as the Partner to have access to our general Utility functions to gain access to your data. It has the following public methods:
get_job_status- retrieve information & results of a job. Read more on job status in the Smile Identity documentation.get_smile_id_services- general information about different smile identity products such as required inputs for each supported id type.
Dependencies
- Composer build tool
- php: >= 7.4
- ext-curl: *
- ext-json: *
- ext-openssl: *
- ext-zip: *
- guzzlehttp/guzzle: ^7.0
- letsdrink/ouzo-goodies: ~1.0
Documentation
For extensive instructions on usage of the library and sample codes, please refer to the official Smile Identity documentation.
Before that, you should take a look at the examples in the examples folder.
Installation
Installing from the Repository
Download smile-identity-core-php repository to a directory on your server where PHP and Composer is installed.
In that directory, run composer install
Installing from Packagist
View the package on Packagist.
Alternatively, the package can be searched locally from a composer-based project by typing the command composer search <PACKAGE_NAME> in the command line where PACKAGE_NAME can the full name of the package (in this case smile-identity/smile-identity-core) or any part of the name distinct enough to return a match.
In the project's directory, run:
composer require smile-identity/smile-identity-core
Getting Help
For usage questions, the best resource is our official documentation. However, if you require further assistance, you can file a support ticket via our portal or visit the contact us page on our website.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/smileidentity/smile-identity-core-php
License
MIT License
smile-identity/smile-identity-core 适用场景与选型建议
smile-identity/smile-identity-core 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 80.77k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 08 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 smile-identity/smile-identity-core 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 smile-identity/smile-identity-core 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 80.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-11