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

ActiveLibrary[API Development](/categories/api)

sakoora0x/laravel-ethereum-module
=================================

Laravel Ethereum Module

022PHPCI failing

Since Oct 24Pushed 6mo agoCompare

[ Source](https://github.com/sakoora0x/laravel-ethereum-module)[ Packagist](https://packagist.org/packages/sakoora0x/laravel-ethereum-module)[ RSS](/packages/sakoora0x-laravel-ethereum-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Pest Laravel Expectations](https://camo.githubusercontent.com/ac211f52698a1adc9dc4892f0edcdcb21592cff80487e762bbb771e851279ca2/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f457468657265756d2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d73616b6f6f726130782532466c61726176656c2d657468657265756d2d6d6f64756c65267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d457468657265756d2b43727970746f63757272656e63792b57616c6c65742b4d6f64756c652b666f722b4c61726176656c2533412b42616c616e6365732532432b5472616e73616374696f6e732532432b5472616e73666572732532432b4552432d3230266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/ac211f52698a1adc9dc4892f0edcdcb21592cff80487e762bbb771e851279ca2/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f457468657265756d2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d73616b6f6f726130782532466c61726176656c2d657468657265756d2d6d6f64756c65267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d457468657265756d2b43727970746f63757272656e63792b57616c6c65742b4d6f64756c652b666f722b4c61726176656c2533412b42616c616e6365732532432b5472616e73616374696f6e732532432b5472616e73666572732532432b4552432d3230266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

[ ![Latest Version on Packagist](https://camo.githubusercontent.com/21bdb99cf85d0c3f35ac37e4fd4558a850c30ab1ffac9b762907d15ea34954d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616b6f6f726130782f6c61726176656c2d657468657265756d2d6d6f64756c652e7376673f7374796c653d666c61742663616368655365636f6e64733d33363030)](https://packagist.org/packages/sakoora0x/laravel-ethereum-module)[ ![Php Version](https://camo.githubusercontent.com/af3c14fed4241be47ccc899f006a8cddf0bd4f0ee21ac9b1ed280a351df75c08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e322d627269676874677265656e2e7376673f6d61784167653d32353932303030)](https://www.php.net)[ ![Php Version](https://camo.githubusercontent.com/c052236cf00f5483f3811fcb9822473314014aabe3edab756a1bc55270897fdc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d2533453d31302d7265642e7376673f6d61784167653d32353932303030)](https://laravel.com/)[ ![Total Downloads](https://camo.githubusercontent.com/a529e3639a214a4e8b73ff1d0a3f0438b7090f98204ddbc422dd381f4225e0bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616b6f6f726130782f6c61726176656c2d657468657265756d2d6d6f64756c652e7376673f7374796c653d666c61742663616368655365636f6e64733d33363030)](https://packagist.org/packages/sakoora0x/laravel-ethereum-module)[![Website](https://camo.githubusercontent.com/b1a1962c2e4d0c2cae3ad4b9b5cd0e9088e096defba8fa233da2e2fb376974b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576562736974652d68747470733a2f2f73616b6f6f726130782e636f6d2d626c61636b)](https://sakoora0x.com)[![Telegram](https://camo.githubusercontent.com/0f21e088acd1a8e2cbc2eb6996f54337fd8ff6fc83e10a5941cd3b91d012b8c7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54656c656772616d2d4073616b6f6f726130782d626c7565)](https://t.me/sakoora0x)

**Laravel Ethereum Module** is a Laravel package for work with cryptocurrency Ethereum, with the support ERC-20 tokens. It allows you to generate HD wallets using mnemonic phrase, validate addresses, get addresses balances and resources, preview and send ETH/ERC-20 tokens. You can automate the acceptance and withdrawal of cryptocurrency in your application.

You can contact me for help in integrating payment acceptance into your project.

Requirements
------------

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 8.2 and higher
- Laravel 11 or higher
- PHP Extensions: GMP, BCMath, CType.

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

[](#installation)

You can install the package via composer:

```
composer require sakoora0x/laravel-ethereum-module

```

After you can run installer using command:

```
php artisan ethereum:install

```

And run migrations:

```
php artisan migrate

```

Register Service Provider and Facade in app, edit `config/app.php`:

```
'providers' => ServiceProvider::defaultProviders()->merge([
    ...,
    \sakoora0x\LaravelEthereumModule\EthereumServiceProvider::class,
])->toArray(),

'aliases' => Facade::defaultAliases()->merge([
    ...,
    'Ethereum' => \sakoora0x\LaravelEthereumModule\Facades\Ethereum::class,
])->toArray(),

```

For Laravel 10 you edit file `app/Console/Kernel` in method `schedule(Schedule $schedule)` add:

```
$schedule->command('ethereum:sync')
    ->everyMinute()
    ->runInBackground();

```

or for Laravel 11+ add this content to `routes/console.php`:

```
use Illuminate\Support\Facades\Schedule;

...

Schedule::command('ethereum:sync')
    ->everyMinute()
    ->runInBackground();

```

Examples
--------

[](#examples)

First you need to add Ethereum Nodes, you can register account in [ANKR.COM](https://www.ankr.com/rpc/) get take HTTPS Endpoint with API key for Ethereum blockchain:

```
use \sakoora0x\LaravelEthereumModule\Facades\Ethereum;

Ethereum::createNode('My node', 'https://rpc.ankr.com/eth/{API_KEY}');

```

Second you need add Ethereum Explorer, you can register account in [Etherscan.io API](https://etherscan.io/apis) and take Endpoint with API key:

```
use \sakoora0x\LaravelEthereumModule\Facades\Ethereum;

Ethereum::createExplorer('My explorer', 'https://api.etherscan.io/api', '{API_KEY}');

```

You can create ERC-20 Token:

```
use \sakoora0x\LaravelEthereumModule\Facades\Ethereum;

$contractAddress = '0xdac17f958d2ee523a2206206994597c13d831ec7';
Ethereum::createToken($contractAddress);

```

Now you can create new Wallet:

```
use \sakoora0x\LaravelEthereumModule\Facades\Ethereum;

$wallet = Ethereum::createWallet('My wallet');

```

Testing
-------

[](#testing)

The package includes a comprehensive test suite covering all major functionality.

### Running Tests

[](#running-tests)

Install dev dependencies:

```
composer install --dev

```

Run the test suite:

```
composer test

```

Or run tests directly with PHPUnit:

```
vendor/bin/phpunit

```

Run tests with coverage report:

```
composer test-coverage

```

### Test Coverage

[](#test-coverage)

The test suite includes tests for:

- Mnemonic generation and validation (12, 15, 18 word phrases)
- HD wallet creation and management
- Address generation and validation
- Checksum address conversion
- Private key to address conversion
- Password encryption and wallet security
- Model relationships and database operations
- Service provider registration
- Configuration loading

For more details about testing, see [tests/README.md](tests/README.md).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance46

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

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/4a57bfb0b7a98c2728ab3b8e2d9e41a18bd0f9d47fccefbd3ebc6d1293801f94?d=identicon)[sakoora0x](/maintainers/sakoora0x)

---

Top Contributors

[![sakoora0x](https://avatars.githubusercontent.com/u/239889939?v=4)](https://github.com/sakoora0x "sakoora0x (7 commits)")

### Embed Badge

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

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

###  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)
