PHPackages                             le0xcrypto/laravel-web3 - 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. le0xcrypto/laravel-web3

ActiveLibrary[API Development](/categories/api)

le0xcrypto/laravel-web3
=======================

Laravel SDK wrapper for the Web3 PHP API client that interacts with the Ethereum blockchain.

1.1.0(5y ago)02Apache-2.0PHPPHP ^7.4|^8.0

Since Mar 31Pushed 4y agoCompare

[ Source](https://github.com/le0xcrypto/laravel-web3)[ Packagist](https://packagist.org/packages/le0xcrypto/laravel-web3)[ Docs](https://github.com/renoki-co/laravel-web3)[ Fund](https://ko-fi.com/rennokki)[ RSS](/packages/le0xcrypto-laravel-web3/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Laravel Web3 API Client
=======================

[](#laravel-web3-api-client)

[![CI](https://github.com/renoki-co/laravel-web3/workflows/CI/badge.svg?branch=master)](https://github.com/renoki-co/laravel-web3/workflows/CI/badge.svg?branch=master)[![codecov](https://camo.githubusercontent.com/bdaecb59c9d9ca7fecd76028e66536df6104edb2585de59b21c53ddb175539c3/68747470733a2f2f636f6465636f762e696f2f67682f72656e6f6b692d636f2f6c61726176656c2d776562332f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/renoki-co/laravel-web3/branch/master)[![StyleCI](https://camo.githubusercontent.com/decfdc7498bdebb0a00dfd5f3c0cc9d7bc49d49f8207d738180f159cdbc470d5/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3335333030373731352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/353007715)[![Latest Stable Version](https://camo.githubusercontent.com/1177c09465b53069368f1388d023b392bb5d311dc1638fa32653b985c11a2422/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d776562332f762f737461626c65)](https://packagist.org/packages/renoki-co/laravel-web3)[![Total Downloads](https://camo.githubusercontent.com/7b1899b076c7becd83d7c4db6826d35180a71fe2d394fdbe89d16af2bd33073b/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d776562332f646f776e6c6f616473)](https://packagist.org/packages/renoki-co/laravel-web3)[![Monthly Downloads](https://camo.githubusercontent.com/bd1cbef8ff94b6faa26f3ddaf1a7844ea5bd2d0d9f0ef1182cb972f94224a507/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d776562332f642f6d6f6e74686c79)](https://packagist.org/packages/renoki-co/laravel-web3)[![License](https://camo.githubusercontent.com/644fec176203c5e7d97a2a1566078d47e9316aaf0c81ca6e8988491fc973bd76/68747470733a2f2f706f7365722e707567782e6f72672f72656e6f6b692d636f2f6c61726176656c2d776562332f6c6963656e7365)](https://packagist.org/packages/renoki-co/laravel-web3)

Laravel Web3 is a Laravel SDK wrapper for the [Web3 PHP API client](https://github.com/web3p/web3.php) that interacts with the Ethereum blockchain.

🤝 Supporting
------------

[](#-supporting)

Renoki Co. on GitHub aims on bringing a lot of open source projects and helpful projects to the world. Developing and maintaining projects everyday is a harsh work and tho, we love it.

If you are using your application in your day-to-day job, on presentation demos, hobby projects or even school projects, spread some kind words about our work or sponsor our work. Kind words will touch our chakras and vibe, while the sponsorships will keep the open source projects alive.

[![ko-fi](https://camo.githubusercontent.com/1fedf764fa06114b797ee53e7506df10880abed6766f854202d758df1707969d/68747470733a2f2f7777772e6b6f2d66692e636f6d2f696d672f676974687562627574746f6e5f736d2e737667)](https://ko-fi.com/R6R42U8CL)

🚀 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require renoki-co/laravel-web3 --ignore-platform-reqs
```

Publish the config:

```
$ php artisan vendor:publish --provider="RenokiCo\LaravelWeb3\LaravelWeb3ServiceProvider" --tag="config"
```

🙌 Usage
-------

[](#-usage)

The client configuration can be found in the `config/web3.php` file. Each call will be made from the `\Web3\Web3` class:

```
use RenokiCo\LaravelWeb3\Web3Facade;

Web3Facade::eth()->provider->execute(function ($err, $data) {
    //
});
```

Multiple connections
--------------------

[](#multiple-connections)

The package supports multiple connections configurations. If you wish to select a specific one (not the default one), call `connection` before getting the cluster.

```
use RenokiCo\LaravelWeb3\Web3Facade;

Web3Facade::connection('http2')->eth()->provider->execute(function ($err, $data) {
    //
});
```

Additional methods
------------------

[](#additional-methods)

The following methods are also available to start with:

```
use RenokiCo\LaravelWeb3\Web3Facade;

Web3Facade::eth(); // equivalent of $web3->eth
Web3Facade::net();  // equivalent of $web3->net
Web3Facade::personal();  // equivalent of $web3->personal
Web3Facade::shh();  // equivalent of $web3->shh
Web3Facade::utils();  // equivalent of $web3->utils
```

Working with Contracts
----------------------

[](#working-with-contracts)

You can also initialize contracts with the same configuration:

```
use RenokiCo\LaravelWeb3\Web3Facade;

Web3Facade::contract($abi, 'latest')
    ->bytecode($bytecode)
    ->new($params, $callback);
```

🐛 Testing
---------

[](#-testing)

```
vendor/bin/phpunit
```

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

🔒 Security
----------

[](#--security)

If you discover any security related issues, please email  instead of using the issue tracker.

🎉 Credits
---------

[](#-credits)

- [Alex Renoki](https://github.com/rennokki)
- [All Contributors](../../contributors)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~6 days

Total

2

Last Release

1861d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37532fb203d501dd78c2ca293aedf0367111e3168b6e9e287cfdd8217fe6eb97?d=identicon)[le0xcrypto](/maintainers/le0xcrypto)

---

Top Contributors

[![rennokki](https://avatars.githubusercontent.com/u/21983456?v=4)](https://github.com/rennokki "rennokki (18 commits)")[![vkovic](https://avatars.githubusercontent.com/u/4613605?v=4)](https://github.com/vkovic "vkovic (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

phpapicontractslaravelsdktokenwrapperethereumethweb3blockchain

### Embed Badge

![Health badge](/badges/le0xcrypto-laravel-web3/health.svg)

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

###  Alternatives

[php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

16553.3k1](/packages/php-tmdb-laravel)

PHPackages © 2026

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