PHPackages                             scriptoshi/livewire-siwe - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. scriptoshi/livewire-siwe

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

scriptoshi/livewire-siwe
========================

Sign in with Ethereum integration for Laravel using Livewire

1.0.8(3mo ago)073MITPHPPHP ^8.2

Since Mar 14Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/scriptoshi/livewire-siwe)[ Packagist](https://packagist.org/packages/scriptoshi/livewire-siwe)[ RSS](/packages/scriptoshi-livewire-siwe/feed)WikiDiscussions main Synced 1mo ago

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

Livewire SIWE (Sign In With Ethereum)
=====================================

[](#livewire-siwe-sign-in-with-ethereum)

A Laravel Livewire package for authenticating users with Ethereum wallets using the SIWE (Sign In With Ethereum) protocol.

Features
--------

[](#features)

- Easy integration with Laravel's authentication system
- Secure verification of Ethereum signatures
- Automatic user creation based on wallet address
- Configurable redirect URLs and Ethereum chain IDs
- Customizable user registration data

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

[](#requirements)

- PHP 8.2 or higher
- Laravel 12.x
- Livewire 3.x
- AppKit Project ID from [reown.xyz](https://reown.xyz)

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

[](#installation)

### 1. Install the package via composer:

[](#1-install-the-package-via-composer)

```
composer require scriptoshi/livewire-siwe
```

### 2. (OPTIONAL) Publish the package assets and configuration:

[](#2-optional-publish-the-package-assets-and-configuration)

```
php artisan vendor:publish --tag=livewire-siwe-config
php artisan vendor:publish --tag=livewire-siwe-migrations
```

### 3. Run the migrations:

[](#3-run-the-migrations)

```
php artisan migrate
```

This will add an `address` column to your users table for storing Ethereum wallet addresses.

### 4. Install the required JavaScript dependencies:

[](#4-install-the-required-javascript-dependencies)

```
npm install @reown/appkit @reown/appkit-adapter-ethers @reown/appkit-siwe
```

### 5. Configure Tailwind CSS

[](#5-configure-tailwind-css)

To ensure that Tailwind CSS properly processes the component styles, add this package to your content sources in your CSS file (typically `resources/css/app.css`):

```
/* Add this line with your other @source directives */
@source '../../vendor/scriptoshi/livewire-siwe/resources/views/**/*.blade.php';
```

For example, your CSS file might look similar to this:

```
@import "tailwindcss";

@source "../views";
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../vendor/scriptoshi/livewire-siwe/resources/views/**/*.blade.php';

/* Rest of your CSS file */
```

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

[](#configuration)

After publishing the package assets, you can find the configuration file at `config/livewire-siwe.php`. You need to set your [AppKit project ID](https://cloud.reown.com/) and other configuration options:

```
// In your .env file
#https://cloud.reown.com/
APPKIT_PROJECT_ID=your-appkit-project-id
SIWE_CHAIN_ID=1 # Ethereum Mainnet
SIWE_REDIRECT_URL=dashboard
```

Usage
-----

[](#usage)

Once installed, you can use the SIWE login component in your Blade views:

```

```

JavaScript Setup
----------------

[](#javascript-setup)

1. Import the SIWE module in your `resources/js/app.js` file:

```
// Import the SIWE module
import { createSiwe } from "../../vendor/scriptoshi/livewire-siwe/resources/js/siwe.js";

// Initialize SIWE when the document is loaded
document.addEventListener("DOMContentLoaded", function () {
    createSiwe();
});
```

2. Include your app.js in your layout:

```
@vite(['resources/js/app.js'])
```

That's it! The SIWE functionality will be available on pages where the component is used.

Customizing User Registration
-----------------------------

[](#customizing-user-registration)

You can customize how users are registered by defining a callback in your `AppServiceProvider`:

```
// In AppServiceProvider.php
public function boot()
{
    config(['livewire-siwe.user_data_callback' => function ($address, $userData) {
        // Customize user data here
        $userData['name'] = 'ETH User: ' . substr($address, 0, 6);
        return $userData;
    }]);
}
```

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance82

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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 ~41 days

Recently: every ~83 days

Total

9

Last Release

96d ago

### Community

Maintainers

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

---

Top Contributors

[![ofumbi](https://avatars.githubusercontent.com/u/4081256?v=4)](https://github.com/ofumbi "ofumbi (13 commits)")[![scriptoshi](https://avatars.githubusercontent.com/u/189149148?v=4)](https://github.com/scriptoshi "scriptoshi (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/scriptoshi-livewire-siwe/health.svg)

```
[![Health](https://phpackages.com/badges/scriptoshi-livewire-siwe/health.svg)](https://phpackages.com/packages/scriptoshi-livewire-siwe)
```

###  Alternatives

[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)[pschocke/laravel-telegram-login-widget

Easily integrate Telegrams login widget into your Laravel application to send Telegram messages

1610.4k](/packages/pschocke-laravel-telegram-login-widget)

PHPackages © 2026

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