Download the PHP package scriptoshi/livewire-otp-auth without Composer

On this page you can find all versions of the php package scriptoshi/livewire-otp-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package livewire-otp-auth

Livewire OTP Authentication

A simple and easy-to-use OTP (One-Time Password) Email authentication package for Laravel 12 using Livewire 3.

Features

Requirements

Installation

You can install the package via composer:

This will automatically install Livewire and Flux if they're not already in your project.

After installing the package, you need to run the migrations:

This will add the necessary columns to your users table.

Configuration

You can publish the configuration file:

This will create a livewire-otp-auth.php file in your config directory. You can modify the following settings:

Usage

1. Add the trait to your User model

First, add the HasOtpAuth trait to your User model:

2. Make sure Flux is properly set up

If you haven't already set up Flux in your project, follow the official Flux documentation to make sure it's properly configured.

3. Add the component to your views

You can now add the OTP authentication component to your views:

By default, this will use the login type and the request step. You can customize this by passing parameters:

Available types:

4. Customizing the UI

If you want to customize the UI, you can publish the views:

Then you can edit the views in resources/views/vendor/livewire-otp-auth.

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:

6. Flux Components

This package uses Flux components to provide a consistent and beautiful UI. The components include:

These components automatically inherit your application's theme and styling, providing a seamless integration with your Laravel application.

Routes

The package automatically registers a route for verifying OTPs via email links:

This route is named otp.verify and can be used to verify OTPs sent via email.

License

The MIT License (MIT). Please see License File for more information.


All versions of livewire-otp-auth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0
illuminate/database Version ^12.0
illuminate/notifications Version ^12.0
livewire/livewire Version ^3.0
livewire/flux Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package scriptoshi/livewire-otp-auth contains the following files

Loading the files please wait ....