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

ActiveLibrary[API Development](/categories/api)

lajosbencz/geth-php
===================

PHP wrapper for Geth JSON RPC

0.2.1(8y ago)1393[1 issues](https://github.com/lajosbencz/geth-php/issues)MITPHP

Since Sep 13Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

GETH-PHP
========

[](#geth-php)

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

INSTALL
-------

[](#install)

```
composer require lajosbencz/geth-php

```

USAGE
-----

[](#usage)

```
$geth = new \GethApi\GethApi([
        // 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;
}
```

TODO
----

[](#todo)

- Parallel requests
- Implement experimental [PUB/SUB](https://github.com/ethereum/go-ethereum/wiki/RPC-PUB-SUB)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

4

Last Release

3162d ago

### Community

Maintainers

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

---

Top Contributors

[![lajosbencz](https://avatars.githubusercontent.com/u/8420835?v=4)](https://github.com/lajosbencz "lajosbencz (5 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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