PHPackages                             xubingphper/ethsign - 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. xubingphper/ethsign

ActiveLibrary

xubingphper/ethsign
===================

ethsign

06PHP

Since Apr 26Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

EthSign
=======

[](#ethsign)

此代码库为以太坊中使用metamask等钱包生成的签名的验证。
-------------------------------

[](#此代码库为以太坊中使用metamask等钱包生成的签名的验证)

\##步骤1 前端传值 签名、消息字符、地址。如下：

sign: 里面包含三部分，分别是：r s v，无需自己解析，传入后代码会自动解析。例如：0xb319edba9d9d8c12a83d3a6e2a072fa5813dd8a5e9460ac3a475ab40a9988ddd059eed15f8c748a2b18c303b2a290a40c464b0a72274dfe1a96820bb02617b4f1b

msg: 为签名字符串。 例如：123456

address: 签名地址。 例如：0xc9fa719138a0d8fec944ed2bdc6d191e3ef08721

\##步骤2 后端拿到上面的三个值进行验证。

```
use huigan\EthSign;

$EthSign = new EthSign();
$sign="0xb319edba9d9d8c12a83d3a6e2a072fa5813dd8a5e9460ac3a475ab40a9988ddd059eed15f8c748a2b18c303b2a290a40c464b0a72274dfe1a96820bb02617b4f1b";
$msg="123456";
$address="0xc9fa719138a0d8fec944ed2bdc6d191e3ef08721";

$succ=$EthSign->verify($msg,$sign,$address);
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5814e2815d57af83645148e0fbfbc9638978f2ec92bfcb2b33b8331d968ac6b0?d=identicon)[xubingphper](/maintainers/xubingphper)

### Embed Badge

![Health badge](/badges/xubingphper-ethsign/health.svg)

```
[![Health](https://phpackages.com/badges/xubingphper-ethsign/health.svg)](https://phpackages.com/packages/xubingphper-ethsign)
```

PHPackages © 2026

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