PHPackages                             kemalevren/geth-php - 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. kemalevren/geth-php

ActiveProject

kemalevren/geth-php
===================

A PHP wrapper to the geth JSON-RPC API.

v1.1.6(6y ago)53614[2 issues](https://github.com/kemalevren/geth-php/issues)MITPHPPHP &gt;=7.0CI failing

Since Dec 14Pushed 5y ago2 watchersCompare

[ Source](https://github.com/kemalevren/geth-php)[ Packagist](https://packagist.org/packages/kemalevren/geth-php)[ RSS](/packages/kemalevren-geth-php/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (20)Used By (0)

GETH-PHP
========

[](#geth-php)

A PHP wrapper to the [Geth](https://github.com/ethereum/go-ethereum) [JSON-RPC](https://github.com/ethereum/wiki/wiki/JSON-RPC)

Requirements
============

[](#requirements)

- PHP &gt;= 7.0.x
- phpunit &gt;= 6.5.\*
- cURL Extension
- illuminate/support &gt;= 5.1.\*

Installation
============

[](#installation)

```
composer require kemalevren/geth-php

```

Usage
=====

[](#usage)

```
$geth = new \kemalevren\Geth\JsonRpc([
        // Geth JSON-RPC version
        'version' => '2.0',
        // Host part of address
        'host' => '127.0.0.1',
        // Port part of address
        'port' => 8545,
        // Return results as associative arrays instead of objects
        'assoc' => true,
]);

$version = $geth->web3_getVersion();

$accounts = $geth->eth_accounts();
foreach($accounts as $account) {
    echo $account, ': ', $geth->eth_getBalance($account, 'latest'), PHP_EOL;
}
```

Laravel 5
=========

[](#laravel-5)

Add the service provider and facade in your config/app.php

Service Provider

```
kemalevren\Geth\Laravel5\GethPhpServiceProvider::class,

```

Facade

```
'JsonRpc'   => kemalevren\Geth\Laravel5\Facades\JsonRpc::class,

```

Laravel 5 Usage
===============

[](#laravel-5-usage)

```
JsonRpc::setOptions([
        // Geth JSON-RPC version
        'version' => '2.0',
        // Host part of address
        'host' => '127.0.0.1',
        // Port part of address
        'port' => 8545,
        // Return results as associative arrays instead of objects
        'assoc' => true,
]);

$version = JsonRpc::web3_getVersion();

$accounts = JsonRpc::eth_accounts();
foreach($accounts as $account) {
    echo $account, ': ', JsonRpc::eth_getBalance($account, 'latest'), PHP_EOL;
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% 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 ~42 days

Recently: every ~169 days

Total

19

Last Release

2301d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b30dfa63c582baefded9dd41453d45bf041318d0e7f2161d14c8cc446d3a545?d=identicon)[kemalevren](/maintainers/kemalevren)

---

Top Contributors

[![kemalevren](https://avatars.githubusercontent.com/u/480048?v=4)](https://github.com/kemalevren "kemalevren (18 commits)")[![kerwin-cn](https://avatars.githubusercontent.com/u/17514334?v=4)](https://github.com/kerwin-cn "kerwin-cn (1 commits)")

---

Tags

phpethgeth

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kemalevren-geth-php/health.svg)

```
[![Health](https://phpackages.com/badges/kemalevren-geth-php/health.svg)](https://phpackages.com/packages/kemalevren-geth-php)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)

PHPackages © 2026

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