PHPackages                             jasonz1987/tron-ecrecover - 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. jasonz1987/tron-ecrecover

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

jasonz1987/tron-ecrecover
=========================

 php EC recorver library for tron based on ethereum

239PHP

Since Sep 28Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP based EC recovery for Tron
==============================

[](#php-based-ec-recovery-for-tron)

This is the PHP equivalent to **web3.personal.ecRecover**.

```
web3.personal.ecRecover (
   "I want to create a Account on this website. By I signing this text (using Ethereum personal_sign) I agree to the following conditions.",
"0xbbdcdfb9fbe24d460a683633475c77a44072b527a127b159ffaaa043f5dc944105a1671c8b9df95e377d89ec17a1a0ed13f5caa33e5fa80bdf12391bf2e04e4f1c",
(e,f)=>{console.log(e,f)}
)
```

Usage
-----

[](#usage)

```
use Tron\EcRecover;

$addrss = '0xbe93f9bacbcffc8ee6663f2647917ed7a20a57bb';
$message = 'hello world';
$signature = '0xce909e8ea6851bc36c007a0072d0524b07a3ff8d4e623aca4c71ca8e57250c4d0a3fc38fa8fbaaa81ead4b9f6bd03356b6f8bf18bccad167d78891636e1d69561b';

// Verify known address
$valid = EcRecover::personalVerifyEcRecover($message,  $signature,  $address);

// Recover unknown address
$recoveredAddress = EcRecover::personalEcRecover($message, $signature);
if ($recoveredAddress === $address) {
  echo 'Jay! it was a long way here. '
}
```

Testing
-------

[](#testing)

```
composer install
vendor/bin/phpunit
```

Inspired By
-----------

[](#inspired-by)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9a113a2f27c7985e63a466a5fa91c35f7794b3bdffe36c5768c8db78f5e727d?d=identicon)[jasonz1987](/maintainers/jasonz1987)

---

Top Contributors

[![jasonz1987](https://avatars.githubusercontent.com/u/7090036?v=4)](https://github.com/jasonz1987 "jasonz1987 (2 commits)")

### Embed Badge

![Health badge](/badges/jasonz1987-tron-ecrecover/health.svg)

```
[![Health](https://phpackages.com/badges/jasonz1987-tron-ecrecover/health.svg)](https://phpackages.com/packages/jasonz1987-tron-ecrecover)
```

###  Alternatives

[olimortimer/laravelshoppingcart

Laravel Shoppingcart

4343.2k](/packages/olimortimer-laravelshoppingcart)[rap2hpoutre/remove-stop-words

Remove stop words from a string

1528.3k](/packages/rap2hpoutre-remove-stop-words)[wenhainan/thinkcsv

csv处理组件,导入导出csv

223.4k](/packages/wenhainan-thinkcsv)

PHPackages © 2026

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