Download the PHP package xiaohuasheng0x1/erc-php without Composer

On this page you can find all versions of the php package xiaohuasheng0x1/erc-php. 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 erc-php

erc-php

ethereum rpc client, offline sign, php

PHP版的以太坊RPC客户端,支持离线交易、生成私钥与地址。你不用专门购买一台服务器来运行以太坊客户端。

你可以使用以太坊公共节点,比如:https://infura.io 你可以将你用户的私钥加密存储在数据库中,使用的时候取出解密,直接发送交易。

这样不仅高效率且安全(如果你执意要使用服务器来运行以太坊客户端,这个项目也支持)。

安装

composer.json

然后composer update即可。

或者直接 composer require xiaohuasheng0x1/erc-php:^1.0.0

使用

详细使用请参考examples文件夹

你可以在这里:https://infura.io/docs 看到更多可使用的RPC方法。

初始化

初始化你可以直接给一个RPC的连接地址,或者参考GuzzleHttp Options给出一些自定义的选项。

GuzzleHttp Options.

RPC

使用RPC接口非常简单,你直接参考 https://ethereum.gitbooks.io/frontier-guide/content/rpc.html 这里列出的接口使用。

你需要根据RPC文档设置参数,注意数字一般都需要转为十六进制。

你也可以使用额外的RPC方法,当然这需要你的私有节点,如果你用的公共节点则没有此方法。

你可以直接使用这个类提供的离节点创建地址与私钥。

离线创建交易并用节点广播

你可以在你本地直接发送交易,而不需要私有节点,你只需要连接到公共节点就行。


All versions of erc-php with dependencies

PHP Build Version
Package Version
Requires simplito/elliptic-php Version ^1.0
kornrunner/keccak Version ^1.0
guzzlehttp/guzzle Version ^7.2
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 xiaohuasheng0x1/erc-php contains the following files

Loading the files please wait ....