Download the PHP package sicaboy/laravel-mfa without Composer

On this page you can find all versions of the php package sicaboy/laravel-mfa. 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 laravel-mfa

Laravel Multi-factor Authentication (MFA) / Two-factor Authentication (2FA)

Latest Stable Version Total Downloads Tests PHP Version Require Packagist GitHub issues GitHub stars

Introduction

A powerful and flexible Laravel package that provides Multi-factor Authentication (MFA) / Two-factor Authentication (2FA) middleware to secure your Laravel applications. This package was originally part of sicaboy/laravel-security and has been moved to this dedicated repository.

Features


[!NOTE]

🚀 Advertisement: Don't Want to Build Authentication From Scratch?

Save weeks of development time with Users.au - a complete authentication solution for Laravel!

Users.au MFA Screenshot

Why Choose Users.au?

  • 🎯 Ready-to-use Authentication - Complete user management system
  • 🔐 Built-in MFA/2FA - No need for additional packages
  • Laravel Integration - Seamless setup with your existing Laravel app
  • 🆓 Free to Start - Get started without any upfront costs
  • 🛠️ Developer-friendly - Multiple integration options

Get Started in Minutes:

Option 1: Laravel Starter Kit (Fastest)

Option 2: Add to Existing Laravel App

Option 3: Socialite Integration

Resources:

Skip the complexity of building authentication from scratch and focus on what makes your app unique!


Installation

Requirements

Install via Composer

Publish Configuration and Views

This will publish:

Service Provider Registration (Laravel < 5.5)

If you're using Laravel < 5.5, manually register the service provider in config/app.php:

Usage

Basic Usage

Protect your routes by applying the mfa middleware:

Multiple Authentication Guards

If you use multiple authentication guards (e.g., separate user and admin authentication), specify the guard group:

Configure the corresponding group in config/laravel-mfa.php:

Configuration Options

Email Configuration

Configure email settings in config/laravel-mfa.php:

Code Expiration

Set how long verification codes remain valid:

Queue Configuration

For applications with queue workers running, enable background email sending:

Make sure your queue worker is running:

API Responses

The middleware provides JSON responses for API requests:

Testing

Run the test suite:

Or run PHPUnit directly:

Security Considerations

Roadmap

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

Development Setup

  1. Clone the repository:

  2. Install dependencies:

  3. Run tests:

Running Tests

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

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

Support

Credits


All versions of laravel-mfa with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1|^8.0
illuminate/support Version ^5.7|^6|^7|^8|^9|^10
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 sicaboy/laravel-mfa contains the following files

Loading the files please wait ....