Skip to content

thirdfactorai/thirdfactor-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThirdFactor PHP

composer require thirdfactor/sdk
require __DIR__ . '/vendor/autoload.php';

use ThirdFactor\Client;

$tf = new Client(
    getenv('THIRDFACTOR_API_KEY'),
    getenv('THIRDFACTOR_BASE_URL') ?: 'https://api.thirdfactor.ai',
);
$session = $tf->createSession([
    'vendor_data' => 'user-42',
    'callback_url' => 'https://example.com/kyc/done',
], 'kyc-user-42');

The client uses PHP streams and requires no HTTP-framework dependency. Use ThirdFactor\Webhooks::constructEvent() on the untouched request body.

Requirements

  • PHP 8.1 or newer
  • JSON extension
  • No HTTP-client framework dependency

Development

composer validate --strict
composer test

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages