Download the PHP package scriptoshi/livewire-siwe without Composer
On this page you can find all versions of the php package scriptoshi/livewire-siwe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scriptoshi/livewire-siwe
More information about scriptoshi/livewire-siwe
Files in scriptoshi/livewire-siwe
Package livewire-siwe
Short Description Sign in with Ethereum integration for Laravel using Livewire
License MIT
Informations about the package livewire-siwe
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
- 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
- PHP 8.2 or higher
- Laravel 12.x
- Livewire 3.x
- AppKit Project ID from reown.xyz
Installation
1. Install the package via composer:
2. (OPTIONAL) Publish the package assets and configuration:
3. Run the migrations:
This will add an address
column to your users table for storing Ethereum wallet addresses.
4. Install the required JavaScript dependencies:
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
):
For example, your CSS file might look similar to this:
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 and other configuration options:
Usage
Once installed, you can use the SIWE login component in your Blade views:
JavaScript Setup
-
Import the SIWE module in your
resources/js/app.js
file: - Include your app.js in your layout:
That's it! The SIWE functionality will be available on pages where the component is used.
Customizing User Registration
You can customize how users are registered by defining a callback in your AppServiceProvider
:
License
The MIT License (MIT). Please see License File for more information.
All versions of livewire-siwe with dependencies
illuminate/support Version ^12.0
livewire/livewire Version ^3.0
kornrunner/keccak Version ^1.0
simplito/elliptic-php Version ^1.0