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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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.

  1. Set baseUrl to your target url.

  2. 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

PHP Build Version
Package Version
Requires php Version >=5.6
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aelf/aelf-sdk contains the following files

Loading the files please wait ....