PHP code example of safe / block-chain-php-sdk

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

    

safe / block-chain-php-sdk example snippets


    /**
     * @var \Safe\BlockChain\Client $client
     */
    $client = (new \Safe\BlockChain\ClientFactory())(
        API_BASE_URL,
        USER_ID,
        USER_TOKEN
    );

    //Work with ethereum/account endpoint
    $client->ethereum('Account');
    
    //Work with safe/contract endpoint
    $client->safe('Contract');
    
    //Work with exchange/callback endpoint
    $client->exchange('Callback');