PHPackages                             hhun/web3-recover - 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. hhun/web3-recover

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

hhun/web3-recover
=================

还原Web3签名消息的签名帐户

v1.0.2(3y ago)117MITPHPPHP &gt;=7.1.0

Since Mar 10Pushed 2y ago1 watchersCompare

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

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

还原Web3签名消息的签名帐户
===============

[](#还原web3签名消息的签名帐户)

**中文** | [English](README.en.md)

使用方法
----

[](#使用方法)

JavaScript 签名消息
---------------

[](#javascript-签名消息)

```
var msg = 'login'
var from = web3.eth.accounts[0]
web3.eth.sign(msg, from, function (err, result) {
	if (err) {
		return console.error(err);
	}
	console.log('signed: ' + result);
});
```

PHP恢复签名地址
---------

[](#php恢复签名地址)

```
use hhun\Web3Recover\Web3Recover;

$signed = '0x4cde93d4........'; // 签名内容

$msg = 'login';
echo Web3Recover::fromText($msg, $signed);

$hex = '0x6c6f67696e';
echo Web3Recover::fromHex($hex, $signed);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Every ~0 days

Total

2

Last Release

1156d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62f546331d699e34f50d3a139e9d2e94e64c9ff9937bda9c4769f71514ed9732?d=identicon)[hhun](/maintainers/hhun)

---

Top Contributors

[![hhun](https://avatars.githubusercontent.com/u/19625243?v=4)](https://github.com/hhun "hhun (7 commits)")

---

Tags

recoverweb3web3recover

### Embed Badge

![Health badge](/badges/hhun-web3-recover/health.svg)

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

###  Alternatives

[kornrunner/ethereum-offline-raw-tx

Pure PHP Ethereum Offline Raw Transaction Signer

63192.1k22](/packages/kornrunner-ethereum-offline-raw-tx)[web3p/ethereum-util

A collection of utility functions for Ethereum written in PHP.

30420.2k26](/packages/web3p-ethereum-util)[kornrunner/ethereum-address

Pure PHP Ethereum Address Generator / Validator

41113.1k7](/packages/kornrunner-ethereum-address)[digitaldonkey/ecverify

A library integrating Ethereum with typed PHP.

14109.2k2](/packages/digitaldonkey-ecverify)[kornrunner/solidity

Pure PHP implementation of Solidity

1940.5k11](/packages/kornrunner-solidity)

PHPackages © 2026

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