Download the PHP package aelf/aelf-sdk without Composer
On this page you can find all versions of the php package aelf/aelf-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aelf/aelf-sdk
More information about aelf/aelf-sdk
Files in aelf/aelf-sdk
Package aelf-sdk
Short Description AElf php SDK
License MIT
Homepage https://github.com/AElfProject/aelf-sdk.php
Informations about the package aelf-sdk
AElf-sdk.php
Introduction
This is a PHP client library, used to communicate with the AElf API.
Installation
AElf php SDK
In order to install this library via composer run the following command in the console:
composer require curl/curl
If you directly clone the sdk You must install composer and execute it in the root directory
Environment configuration And extensions that need to be turned on
Basic usage
Examples
You can also see full examples in ./example
;
Interface
Interface methods can be easily available by the instance "aelfClient" shown in basic usage. The following is a list of input parameters and output for each method. Check out the Web api reference for detailed Interface description.
IBlockAppService
IChainAppService
INetAppService
ITransactionAppService
IClientService
Test
This module contains tests for all services provided by AElf. You can see how to properly use services provided by AElf here.
You need to firstly set necessary parameters to make sure tests can run successfully.
-
Set baseUrl to your target url.
- Give a valid privateKey of a node.
Note
You need to run a local or remote AElf node to run the unit test successfully. If you're not familiar with how to run a node or multiple nodes, please see Running a node / Running multiple nodes for more information.
All versions of aelf-sdk with dependencies
ext-gmp Version *
ext-curl Version *
kornrunner/secp256k1 Version ^0.1.2
hhxsv5/php-multi-curl Version ~1.0
stephenhill/base58 Version ^1.1
bitcoin-php/bitcoin-ecdsa Version ^1.3
google/protobuf Version ^3.11
tuupola/base58 Version ^2.0