PHPackages                             omnixdeveloper/laravel-omnix - 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. omnixdeveloper/laravel-omnix

ActiveLibrary[API Development](/categories/api)

omnixdeveloper/laravel-omnix
============================

Omnix json rpc api

09PHP

Since Mar 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/omnixdeveloper/laravel-omnix)[ Packagist](https://packagist.org/packages/omnixdeveloper/laravel-omnix)[ RSS](/packages/omnixdeveloper-laravel-omnix/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

 [![Latest Stable Version](https://camo.githubusercontent.com/8a073847f1c242478bee0370517a035ebb5f873c770cf1fbbf71295f7d79ef47/68747470733a2f2f706f7365722e707567782e6f72672f6f6d6e6978646576656c6f7065722f6c61726176656c2d6f6d6e69782f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/omnixdeveloper/laravel-omnix) [![Latest Unstable Version](https://camo.githubusercontent.com/086c49a913a027434cc7a656cc904ae248dc9abd6658b5d46e860e75ac2bd793/68747470733a2f2f706f7365722e707567782e6f72672f6f6d6e6978646576656c6f7065722f6c61726176656c2d6f6d6e69782f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/omnixdeveloper/laravel-omnix) [![License](https://camo.githubusercontent.com/a330ce142bfd57bb4def73b5c494d7e5cd7d7f00794ab25f58c0b27f4688cdca/68747470733a2f2f706f7365722e707567782e6f72672f6f6d6e6978646576656c6f7065722f6c61726176656c2d6f6d6e69782f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/omnixdeveloper/laravel-omnix) [![Total Downloads](https://camo.githubusercontent.com/e379c77756896c86cac8fd5475cbf760b5012c766a29b82191e793f4879477e3/68747470733a2f2f706f7365722e707567782e6f72672f6f6d6e6978646576656c6f7065722f6c61726176656c2d6f6d6e69782f646f776e6c6f616473)](https://packagist.org/packages/omnixdeveloper/laravel-omnix)

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 omnixdeveloper/laravel-omnix
```

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

```
{
    "require": {
        "omnixdeveloper/laravel-omnix": "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 `omnixdeveloper\LaravelOmnix\OmnixServiceProvider` to the `providers` array in your `config/app.php`:

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

    omnixdeveloper\LaravelOmnix\OmnixServiceProvider::class,
],
```

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

```
use omnixdeveloper\LaravelOmnix\Facade\Ethereum;
```

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

```
'aliases' => [
    ...
    'Ethereum' => omnixdeveloper\LaravelOmnix\Facade\Ethereum::class,
],
```

### Using laravel-omnix with Lumen

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

laravel-omnix 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 omnixdeveloper/laravel-omnix
```

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

```
$app->register(omnixdeveloper\LaravelOmnix\OmnixServiceProvider::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/omnixdeveloper/laravel-omnix/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 = \omnixdeveloper\LaravelOmnix\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 = \omnixdeveloper\LaravelOmnix\Facade\Ethereum::eth_protocolVersion();
        print_r($ret);
    }catch (Exception $e){
        echo $e->getMessage();
    }
```

Or

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

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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![koisanworld](https://avatars.githubusercontent.com/u/97863876?v=4)](https://github.com/koisanworld "koisanworld (1 commits)")

### Embed Badge

![Health badge](/badges/omnixdeveloper-laravel-omnix/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[pixelant/pxa-social-feed

Add Facebook, Instagram, and Twitter feeds to your site.

2349.3k](/packages/pixelant-pxa-social-feed)

PHPackages © 2026

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