PHP code example of complycube / complycube-php

1. Go to this page and download the library: Download complycube/complycube-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

complycube / complycube-php example snippets

 php
 php
use ComplyCube\ComplyCubeClient;
$complycube = new ComplyCubeClient($apiKey);
 php
$newclient = $complycube->clients()->create([
    'type' => 'person',
    'email' => '[email protected]',
    'personDetails' => ['firstName' => 'John',
                        'lastName' => 'Smith']]);

$result = $complycube->checks()->create($newclient->id,
                                        ['type' => 'extensive_screening_check']);
 php
$verifier = new \ComplyCube\EventVerifier('WEBHOOK_SECRET');

$event = $verifier->constructEvent($data, $headers[SIGNATURE_KEY]);