Skip to content

varyandeveloper/safe-block-chain-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages