safe/block-chain-php-sdk

PHP Safe BlockChain PHP SDK

1.0.0 2018-09-24 19:45 UTC

This package is auto-updated.

Last update: 2024-04-16 07:53:58 UTC


README

#Safe Block Chain PHP SDK

This package makes it simple to integrate your application with Safe Block Chain API.

#Requirements

  • PHP >= 7.2
  • Composer package management
  • Guzzle\Http >= 3.9

#Installation

  • Clone repository or require package with Composer package (composer require safe/block-chain-php-sdk)
  • Run composer install

#Usage

  • Initialize Block Chain client with factory
    /**
     * @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');

#Version

  • 1.0.0

#Authors

  • Varazdat Stepanyan