PHP code example of trustedsign / sdk-php

1. Go to this page and download the library: Download trustedsign/sdk-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/ */

    

trustedsign / sdk-php example snippets


$client = new TrustedSignSDK\TrustedSignClient([
    'app_key' => '9b5062s452mdf4d6',
    'app_secret' => '2e396b27a1958279240e088c677e4721'
]);

try {
  $response = $client->get('/template');
} catch(TrustSignSDK\SDKException $e) {
  echo 'server returned an error: ' . $e->getMessage();
  exit;
}