shepherrrd/dotta-php

There is no license information available for the latest version (v1.0.6) of this package.

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.

v1.0.6 2024-03-07 08:20 UTC

This package is auto-updated.

Last update: 2024-11-08 00:16:48 UTC


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

  1. Install the dotta-php package from Packagist.
composer require shepherrrd/dotta-php
  1. 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
    
        );
    
    
    
  2. 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.