Documentation Index
Fetch the complete documentation index at: https://docs.txcloud.thetekcircle.io/llms.txt
Use this file to discover all available pages before exploring further.
New: French documentation now available! Switch to French
SDK TXCloud officiel pour PHP
Documentation Index
Fetch the complete documentation index at: https://docs.txcloud.thetekcircle.io/llms.txt
Use this file to discover all available pages before exploring further.
composer require txcloud/txcloud-php
<?php
require_once 'vendor/autoload.php';
use TXCloud\TXCloud;
$txcloud = new TXCloud(getenv('TXCLOUD_API_KEY'));
$verification = $txcloud->identity->verify([
'document_front' => $documentBase64,
'country' => 'MA',
'document_type' => 'national_id'
]);
echo "Statut: " . $verification->status;
$txcloud = new TXCloud(
apiKey: getenv('TXCLOUD_API_KEY'),
environment: 'production',
timeout: 30
);
use TXCloud\Exceptions\ValidationException;
use TXCloud\Exceptions\RateLimitException;
try {
$result = $txcloud->identity->verify([...]);
} catch (ValidationException $e) {
echo "Validation echouee: " . $e->getMessage();
} catch (RateLimitException $e) {
echo "Limite atteinte, reessayer apres: " . $e->getRetryAfter();
}