PHPackages                             lihq1403/web3-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lihq1403/web3-helper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lihq1403/web3-helper
====================

web3-helper

1.0.0(3y ago)02MITPHPPHP &gt;=7.4

Since May 30Pushed 3y ago2 watchersCompare

[ Source](https://github.com/lihq1403/web3-helper)[ Packagist](https://packagist.org/packages/lihq1403/web3-helper)[ RSS](/packages/lihq1403-web3-helper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

 web3-helper
=============

[](#-web3-helper-)

 web3-helper.

Installing
----------

[](#installing)

```
$ composer require lihq1403/web3-helper -vvv
```

### ganache本地开发环境

[](#ganache本地开发环境)

ganache 客户端下载：

docker下载

```
docker run -d -p 8545:8545 --name ganache trufflesuite/ganache
```

### bsc测试链

[](#bsc测试链)

```
Network Name（网络名称）：
                           bsc-testnet
New RPC URL（新增RPC URL）：
                           https://data-seed-prebsc-1-s3.binance.org:8545/
                     (或者) https://data-seed-prebsc-1-s2.binance.org:8545/
                     (或者) https://data-seed-prebsc-2-s3.binance.org:8545/
                     (或者) https://data-seed-prebsc-2-s1.binance.org:8545/
                     (或者) https://data-seed-prebsc-1-s1.binance.org:8545/
                     (或者) https://data-seed-prebsc-2-s2.binance.org:8545/
Chain ID（链ID）：
                           97
Currency Symbol (optional)（符号（选填））：
                           BNB
Block Explorer URL (optional)（币安智能链浏览器）：
                           https://testnet.bscscan.com

```

### bsc测试

[](#bsc测试)

- 申请测试币
- bsc测试网浏览器

### 合约开发

[](#合约开发)

- 智能合约IDE

Usage
-----

[](#usage)

### 文件说明

[](#文件说明)

```
src
├── Amount // 金额相关的计算
│   ├── AbstractAmount.php
│   ├── BnqBnrAmount.php
│   ├── EtherAmount.php
│   └── WeiAmount.php
├── BscHelper.php
├── Callback.php
├── Constants
│   ├── ErrorCode.php
│   └── Net.php
├── Contracts
│   └── ContractInterface.php
├── Credential.php // 账户
├── DTO
│   └── TransactorDTO.php
├── Exceptions
│   ├── ContractException.php
│   ├── NodeClientException.php
│   └── Web3HelperException.php
├── Kit.php // 工具
├── NodeClient.php // 节点
├── SmartContract.php // 智能合约
└── Transactor.php // 交易

```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/lihq1403/web3-helper/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/lihq1403/web3-helper/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e0ed12e0a107565d6a1bb00bcd6d6c90a18ec5d1c6d0c7dddeee64b54f96bc4?d=identicon)[lihq1403](/maintainers/lihq1403)

---

Top Contributors

[![lihq1403](https://avatars.githubusercontent.com/u/25847339?v=4)](https://github.com/lihq1403 "lihq1403 (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lihq1403-web3-helper/health.svg)

```
[![Health](https://phpackages.com/badges/lihq1403-web3-helper/health.svg)](https://phpackages.com/packages/lihq1403-web3-helper)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
