shepherrrd/dotta-php
最新稳定版本:v1.0.6
Composer 安装命令:
composer require shepherrrd/dotta-php
包简介
dotta-php is a lightweight and intuitive package designed to streamline the integration process of dotta biometrics service and empower businesses to harness the power of dotta effortlessly.
README 文档
README
dotta-php is a lightweight and intuitive package designed to streamline the integration process of dotta API and empower businesses to harness the power of dotta biometric service effortlessly.
dotta offers a wealth of functionality for performing real-time identity verification in the most convenient and efficient approach, but getting started and putting all the codes together can sometimes be complex and time-consuming. With dotta-php, we've simplified the integration process, allowing you to focus on building amazing applications without getting bogged down in implementation details.
Getting Started
- Install the
dotta-phppackage from Packagist.
composer require shepherrrd/dotta-php
-
Setup
dotta-phpwith the configuration//setup dotta config public $apiKey = env('dotta-apikey'); public $publicKey = env('dotta-publickey'); public $privateKey = env('dotta-privatekey'); public $environment = env('dotta-environment') // DottaEnvironment::PRODUCTION; public $baseUrlProduction = env('dotta-produrl'); public $baseUrlSandbox env('dotta-sandboxurl'); public $httpClient = new client() //guzzlehttpclient; $config = new Dotta\Model\Config( $apikey, $publicKey, $privateKey, $environment, $baseUrlProduction, $baseUrlSandbox, $httpClient ); -
You can now access Any member of the Dotta Class
//Initialize the dotta class with the config $dotta = new Dotta\Dotta($config); $photo = $request->files('photo') ?? "images/usedotta.jpg"; $faceAttribute = $dotta->getFaceAttributes($photo);
Dotta Configurations Options
| Option | Description |
|---|---|
| ApiKey | Base64 encode string of your dotta public and private API keys concatenated in this format PUBLICKEY:PRIVATEKEY |
| PublicKey | Your dotta public API key |
| PrivateKey | Your dotta private API key |
| Environment | Enum to specify which dotta environment you want to use |
| BaseUrlProduction | API base url for dotta's production environment. |
| BaseUrlSandbox | API base url for dotta's sandbox or test environment. |
Pass the your public and private key if you don't know how to get a base64 string encoding of your keys. Otherwise, just pass the ApiKey. When you pass the ApiKey, you won't need to pass the public and private keys.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-02-26