PHP code example of tigusigalpa / tokenterminal-php
1. Go to this page and download the library: Download tigusigalpa/tokenterminal-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/ */
$config = new TokenTerminalConfig(
apiKey: 'your-key',
baseUrl: 'https://api.tokenterminal.com',
timeout: 30,
retryAttempts: 3,
retryDelay: 1,
);
// Nothing is mutated; you always get a new instance back
$config = $config->withRetry(5, 2);
$config = $config->withRetryPOST(true);
$client = new TokenTerminalClient($config);