PHPackages                             sawirricardo/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sawirricardo/laravel-web3

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

sawirricardo/laravel-web3
=========================

Send your laravel apps to the moon with web3 enabled 🚀

1.0.0(4y ago)213925[3 issues](https://github.com/sawirricardo/laravel-web3/issues)MITPHPPHP ^8.0

Since Mar 15Pushed 4y ago4 watchersCompare

[ Source](https://github.com/sawirricardo/laravel-web3)[ Packagist](https://packagist.org/packages/sawirricardo/laravel-web3)[ Docs](https://github.com/sawirricardo/laravel-web3)[ GitHub Sponsors](https://github.com/sawirricardo)[ RSS](/packages/sawirricardo-laravel-web3/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (10)Versions (2)Used By (0)

Laravel Web3 🚀🌝
===============

[](#laravel-web3-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/57c595fe234c9431fa490d7d93f2993eb1164a70bec7341899396af5b750c192/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73617769727269636172646f2f6c61726176656c2d776562332e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sawirricardo/laravel-web3)[![GitHub Tests Action Status](https://camo.githubusercontent.com/fbfb9f2dfa4cd6003ecdf185e20c8067ba8cbe3b88c589d98a8144ac7a0d9540/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f73617769727269636172646f2f6c61726176656c2d776562332f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/sawirricardo/laravel-web3/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c2d9751b70bf823588a370301237827d374e61378137b684d8c386bedb0a5bf3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f73617769727269636172646f2f6c61726176656c2d776562332f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/sawirricardo/laravel-web3/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/961b8efab3aeaac89ad6d6a8a21b85ce9be185c70ee8b58914bcdbc1e9e56926/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73617769727269636172646f2f6c61726176656c2d776562332e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sawirricardo/laravel-web3)

---

Laravel Web3 helps you to kickstart your web3 apps.

- No more headache with handling wallet changing address and sync with laravel back-end.
- Just do it
- Really, just do the steps below and be done.

Support this
------------

[](#support-this)

Investing on Laravel-Web3 is defintely a good move from you. You can support by donating to my wallet

- Wallet 0x3F20d326E5DA8ab6D27d9b2DdD350baB1e589d87
- PayPal .

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

[](#installation)

You can install the package via composer:

```
composer require sawirricardo/laravel-web3
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="Sawirricardo\LaravelWeb3\LaravelWeb3ServiceProvider" --tag="laravel-web3-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Sawirricardo\LaravelWeb3\LaravelWeb3ServiceProvider" --tag="laravel-web3-config"
```

This is the contents of the published config file:

```
return [
  'network' => env('WEB3_NETWORK', 'localhost'),
  'infura_id' => env('WEB3_INFURA_ID', ''),
];
```

Add this to your .env

```
WEB3_NETWORK=localhost #mainnet, mumbai, etc
WEB_INFURA_ID=xxxxxxxxxxxxxxxxxx
MIX_WEB3_NETWORK="${WEB3_NETWORK}"
MIX_WEB3_INFURA_ID="${WEB_INFURA_ID}"
```

Then, add "account" to \\App\\Models\\User fillables

```
// app/Models/User.php
protected $fillable = [
  'email','name','password',
  'account' //Add this
];
```

Also add this to your layout HTML

```

```

Usage
-----

[](#usage)

```
@guest
Connect to wallet
@endguest

@auth
Disconnect wallet
@endauth
```

```
// return provider object by Ethers JS
// Run wild, my friends
const etherProvider = laravelWeb3.getProvider();

// LaravelWeb3 automatically register laravelWeb3 to window object for you to play.
console.log({window.laravelWeb3});
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [ricardosawir](https://github.com/sawirricardo)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

1571d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23599e5bcea6210e7c2aa6ab912ab4dc501ca63911cc8a99c46a7b4f57a658ad?d=identicon)[ricardosawir](/maintainers/ricardosawir)

---

Top Contributors

[![sawirricardo](https://avatars.githubusercontent.com/u/37329575?v=4)](https://github.com/sawirricardo "sawirricardo (88 commits)")

---

Tags

laravelweb3laravelsawirricardolaravel-web3

###  Code Quality

TestsPest

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M46](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/laravel-wallet

A simple wallet implementation for Laravel

26611.9k](/packages/stephenjude-laravel-wallet)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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