suma-mexico / vdid-pkg-web
Easiest way to implement verification id.
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/suma-mexico/vdid-pkg-web
README
Congrats! You just saved yourself hours of work by implementing suma's service. Let’s get you oriented with what’s here and how to use it.
Commands
To install vdid-pkg-web, use:
composer require suma-mexico/vdid-pkg-web
Configuration WebVerification using PHP
-
The first step is adding the file using require like that:
require 'vendor/suma-mexico/vdid-pkg-web/src/WebVerification.php';
-
Once you have imported the library, you have to initialize the object like this.
$vdid = new VdidPkgWeb\WebVerification(api-key);
You have to send the public api-key when you initialize it.
api-key: string. -
When you have created the verification and you get the uuid, you will call a function to start the process to upload files and send it, like the following line:
$vdid::verifyIdentity(uuid);
uuid: string
If you want to open a popup instead to redirect, you will call the function like the following line:$vdid::verifyIdentity(uuid, 'popup')
If you want to open a new tab instead to redirect, you will call the function like the following line:
$vdid::verifyIdentity(uuid, 'open')