PHP code example of inxy-payments / signature-sdk-php

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

    

inxy-payments / signature-sdk-php example snippets


use InxyPayments\SignatureSDK\SignatureSDK;

// Create an instance of SignatureSDK
$signatureSDK = new SignatureSDK('your private key here');

// Sign a message
$result = $signatureSDK->signMessage('message');

// Output the result
echo $result->signature . "\n";
echo $result->time;