PHPackages                             kornrunner/ethereum-util - 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. kornrunner/ethereum-util

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

kornrunner/ethereum-util
========================

Pure PHP implementation of Ethereum Utils

0.2.0(6mo ago)841.4k↓41.2%17MITPHPPHP ^8.1CI passing

Since Dec 1Pushed 2mo ago1 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (6)Used By (7)

php-ethereum-util [![Tests](https://github.com/kornrunner/php-ethereum-util/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/kornrunner/php-ethereum-util/actions/workflows/tests.yml) [![Coverage Status](https://camo.githubusercontent.com/f64536d39e58673a503a1cc7db303808a27fac9b94f44c0878a6a95dee50f329/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6b6f726e72756e6e65722f7068702d657468657265756d2d7574696c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/kornrunner/php-ethereum-util?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/0387945d60996629004e1b8aa9d01a9664fdb32087648a4e9d3a943af2992643/68747470733a2f2f706f7365722e707567782e6f72672f6b6f726e72756e6e65722f657468657265756d2d7574696c2f762f737461626c65)](https://packagist.org/packages/kornrunner/ethereum-util)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#php-ethereum-util---)

Pure PHP implementation of Ethereum Utils

Usage
-----

[](#usage)

### Hash Personal Message

[](#hash-personal-message)

```
use kornrunner\Eth;

$hash = Eth::hashPersonalMessage('0xf20f20d357419f696f69e6ff05bc6566b1e6d38814ce4f489d35711e2fd2c481');
// 58a2db04c169254495a55b6dd5609a4902678ec29eac46df1e95994cdbeaebbb
```

### Sign Personal Message

[](#sign-personal-message)

```
use kornrunner\Eth;

$result = Eth::signPersonalMessage('Hello, Ethereum!', $privateKey);
```

### Recover Public Key from Signature (ecRecover)

[](#recover-public-key-from-signature-ecrecover)

```
use kornrunner\Eth;

$publicKey = Eth::ecRecover(
    '98d22cdb65bbf8a392180cd2ee892b0a971c47e7d29daf31a3286d006b9db4dc',
    'f67118680df5993e8efca4d3ecc4172ca4ac5e3e007ea774293e373864809703',
    '47427f3633371c1a30abbb2b717dbd78ef63d5b19b5a951f9d681cccdd520320',
    0
);
```

### Verify Signature (ecVerify)

[](#verify-signature-ecverify)

```
use kornrunner\Eth;

$isValid = Eth::ecVerify(
    '98d22cdb65bbf8a392180cd2ee892b0a971c47e7d29daf31a3286d006b9db4dc', // message hash
    'f67118680df5993e8efca4d3ecc4172ca4ac5e3e007ea774293e373864809703', // r component
    '47427f3633371c1a30abbb2b717dbd78ef63d5b19b5a951f9d681cccdd520320', // s component
    0, // recovery id (v)
    '04cf60398ae73fd947ffe120fba68947ec741fe696438d68a2e52caca139613ff94f220cd0d3e886f95aa226f2ad2b86be1dd5cda2813fd505d1f6a8f552904864' // public key
);
// true
```

All methods support both plain hex strings and 0x-prefixed hex strings.

Crypto
------

[](#crypto)

[![Ethereum](https://user-images.githubusercontent.com/725986/61891022-0d0c7f00-af09-11e9-829f-096c039bbbfa.png) 0x9c7b7a00972121fb843af7af74526d7eb585b171](https://etherscan.io/address/0x9c7b7a00972121fb843af7af74526d7eb585b171 "Donate with Ethereum")

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance78

Regular maintenance activity

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 99.4% 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 ~726 days

Total

5

Last Release

185d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/725986?v=4)[Boris Momčilović](/maintainers/kornrunner)[@kornrunner](https://github.com/kornrunner)

---

Top Contributors

[![kornrunner](https://avatars.githubusercontent.com/u/725986?v=4)](https://github.com/kornrunner "kornrunner (156 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

ethethereumphp-ethereum-utilsethereumeth

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kornrunner-ethereum-util/health.svg)

```
[![Health](https://phpackages.com/badges/kornrunner-ethereum-util/health.svg)](https://phpackages.com/packages/kornrunner-ethereum-util)
```

###  Alternatives

[kornrunner/ethereum-offline-raw-tx

Pure PHP Ethereum Offline Raw Transaction Signer

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

Pure PHP implementation of Solidity

1940.5k11](/packages/kornrunner-solidity)[drlecks/simple-web3-php

Web3 library in PHP

7641.6k2](/packages/drlecks-simple-web3-php)[kornrunner/ethereum-token

PHP Ethereum Token Utils

1412.9k1](/packages/kornrunner-ethereum-token)

PHPackages © 2026

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