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.
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^7.8
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-php
package from Packagist.
composer require shepherrrd/dotta-php
-
Setup
dotta-php
with 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
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.