PHPackages                             dappstatus/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. [API Development](/categories/api)
4. /
5. dappstatus/geth-php

ActiveProject[API Development](/categories/api)

dappstatus/geth-php
===================

A PHP wrapper to the geth JSON-RPC API.

1.3.0(5y ago)0131MITPHPPHP &gt;=7.0

Since Aug 28Pushed 5y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (2)Versions (4)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 dappstatus/geth-php

```

Usage
=====

[](#usage)

```
$geth = new \dappstatus\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

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

```

Facade

```
'JsonRpc'   => dappstatus\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;
}
```"# geth-php"
"# geth-php"
```

Link
====

[](#link)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

3

Last Release

2134d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42303143?v=4)[Dappstatus](/maintainers/Dappstatus)[@dappstatus](https://github.com/dappstatus)

---

Top Contributors

[![dappstatus](https://avatars.githubusercontent.com/u/42303143?v=4)](https://github.com/dappstatus "dappstatus (8 commits)")

---

Tags

phpethgeth

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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