Download the PHP package wula/web3 without Composer

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

Web3适配器

sc0vu/web3.php中的Web3提供一个简单的封装以适用于wula/wulaphp.

安装

composer require wula/web3

配置

使用之前请配置文件: conf/web3_config.php:

说明:

  • etherscanKey: API KEY
  • nodes: 节点
  • url: RPC服务器
  • type: 可选proxy或空,当为proxy时,使用etherscan代理.
  • timeout: 连接超时,单位秒
  • startBlockId: 从哪个区块开始同步数据,如果不设置则不会同步区块数据
  • fullTxData: 是否获取事务的详细数据

使用

获取web3实例并使用:

开启同步:

使用artisan cron命令执行sync.php

# php artisan cron -i3 extensions/wula/web3/sync.php

每3秒同步一次.

事件

每同步到一个区块数据时触发ethereum\onBlockSynced事件:

参数说明

  1. Web3 $web3 Web3 实例.
  2. blockNumber 区块ID.
  3. stdClass $block 区块数据或null,详见eth_getBlockByHash文档.

感谢

本扩展使用了sc0vu/web3.php库,特此感谢.


All versions of web3 with dependencies

PHP Build Version
Package Version
Requires wula/wula-installer Version ^2.0
sc0vu/web3.php Version ^0.1
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 wula/web3 contains the following files

Loading the files please wait ....