PHPackages                             gegosoft/laravel-ethereum - 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. gegosoft/laravel-ethereum

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

gegosoft/laravel-ethereum
=========================

the ethereum json rpc api

v2.0(4y ago)04.2k1MITPHPPHP ^7.1 | ^8.0

Since Dec 12Pushed 4y agoCompare

[ Source](https://github.com/gego-soft/laravel-ethereum)[ Packagist](https://packagist.org/packages/gegosoft/laravel-ethereum)[ RSS](/packages/gegosoft-laravel-ethereum/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

 Ethereum Package for Laravel
------------------------------

[](#----ethereum-package-for-laravel)

Introduction
------------

[](#introduction)

This is a simple Laravel Service Provider providing for [Generic JSON RPC](https://github.com/ethereum/wiki/wiki/JSON-RPC)

and [Management API](https://github.com/ethereum/go-ethereum/wiki/Management-APIs)

Installation
------------

[](#installation)

To install the PHP client library using Composer:

```
composer require gegosoft/laravel-ethereum
```

Alternatively, add these two lines to your composer require section:

```
{
    "require": {
        "gegosoft/laravel-ethereum": "dev-master"
    }
}
```

### Laravel 5.5+

[](#laravel-55)

If you're using Laravel 5.5 or above, the package will automatically register the `Ethereum` provider and facade.

### Laravel 5.4 and below

[](#laravel-54-and-below)

Add `Gegosoft\LaravelEthereum\EthereumServiceProvider` to the `providers` array in your `config/app.php`:

```
'providers' => [
    // Other service providers...

    Gegosoft\LaravelEthereum\EthereumServiceProvider::class,
],
```

If you want to use the facade interface, you can `use` the facade class when needed:

```
use Gegosoft\LaravelEthereum\Facade\Ethereum;
```

Or add an alias in your `config/app.php`:

```
'aliases' => [
    ...
    'Ethereum' => Gegosoft\LaravelEthereum\Facade\Ethereum::class,
],
```

### Using Laravel-Ethereum with Lumen

[](#using-laravel-ethereum-with-lumen)

laravel-ethereum works with Lumen too! You'll need to do a little work by hand to get it up and running. First, install the package using composer:

```
composer require gegosoft/laravel-ethereum
```

Next, we have to tell Lumen that our library exists. Update `bootstrap/app.php`and register the `EthereumServiceProvider`:

```
$app->register(Gegosoft\LaravelEthereum\EthereumServiceProvider::class);
```

Finally, we need to configure the library. Unfortunately Lumen doesn't support auto-publishing files so you'll have to create the config file yourself by creating a config directory and copying the config file out of the package in to your project:

```
mkdir config
cp vendor/gegosoft/laravel-ethereum/config/ethereum.php config/ethereum.php
```

At this point, set `ETH_HOST` and `ETH_PORT` in your `.env` file and it should be working for you. You can test this with the following route:

```
try{
        $ret = \Gegosoft\LaravelEthereum\Facade\Ethereum::eth_protocolVersion();
        print_r($ret);
    }catch (Exception $e){
        echo $e->getMessage();
    }
```

Configuration
-------------

[](#configuration)

You can use `artisan vendor:publish` to copy the distribution configuration file to your app's config directory:

```
php artisan vendor:publish
```

Then update `config/ethereum.php` with your credentials. Alternatively, you can update your `.env` file with the following:

```
ETH_HOST=http://localhost
ETH_PORT=8545
```

Usage
-----

[](#usage)

To use the Ethereum Client Library you can use the facade, or request the instance from the service container:

```
try{
        $ret = \Gegosoft\LaravelEthereum\Facade\Ethereum::eth_protocolVersion();
        print_r($ret);
    }catch (Exception $e){
        echo $e->getMessage();
    }
```

Or

```
$thereum = app('Ethereum');

$result=$thereum->eth_protocolVersion();
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~327 days

Total

5

Last Release

1771d ago

Major Versions

v1.0.3 → v2.02021-07-13

PHP version history (2 changes)v1.0PHP &gt;=7.0.0

v2.0PHP ^7.1 | ^8.0

### Community

Maintainers

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

---

Top Contributors

[![jcsofts](https://avatars.githubusercontent.com/u/33087222?v=4)](https://github.com/jcsofts "jcsofts (4 commits)")[![gego-soft](https://avatars.githubusercontent.com/u/23551931?v=4)](https://github.com/gego-soft "gego-soft (3 commits)")[![sundarichidambaram](https://avatars.githubusercontent.com/u/63224219?v=4)](https://github.com/sundarichidambaram "sundarichidambaram (1 commits)")

---

Tags

laravelethereum

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gegosoft-laravel-ethereum/health.svg)

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

###  Alternatives

[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[backpack/basset

Dead-simple way to load CSS or JS assets only once per page, when using Laravel 10+.

202832.4k6](/packages/backpack-basset)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)

PHPackages © 2026

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