PHPackages                             boxed-code/laravel-challenge - 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. boxed-code/laravel-challenge

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

boxed-code/laravel-challenge
============================

Multi-method two factor authentication for Laravel apps.

2.0(5y ago)29.5k↓31.6%[1 issues](https://github.com/boxed-code/laravel-challenge/issues)MITPHPPHP &gt;=7.4

Since Apr 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/boxed-code/laravel-challenge)[ Packagist](https://packagist.org/packages/boxed-code/laravel-challenge)[ RSS](/packages/boxed-code-laravel-challenge/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (1)Dependencies (14)Versions (5)Used By (0)

Multi-method two factor authentication for Laravel apps.
========================================================

[](#multi-method-two-factor-authentication-for-laravel-apps)

[![Tests](https://github.com/boxed-code/laravel-challenge/workflows/Tests/badge.svg)](https://github.com/boxed-code/laravel-challenge/workflows/Tests/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/1e2b3590713b98935aa6e7b15899df109a1714b3b4e1a7ba89d106170b7a059c/68747470733a2f2f706f7365722e707567782e6f72672f626f7865642d636f64652f6c61726176656c2d6368616c6c656e67652f762f737461626c65)](https://packagist.org/packages/boxed-code/laravel-challenge)[![License](https://camo.githubusercontent.com/8fd07f3f114a75f5b31deed2dea3405ea73962f4e2652e471aaa2a37fb5add4c/68747470733a2f2f706f7365722e707567782e6f72672f626f7865642d636f64652f6c61726176656c2d6368616c6c656e67652f6c6963656e7365)](https://packagist.org/packages/boxed-code/laravel-challenge)

[![Auth Flow](https://camo.githubusercontent.com/d7572cb6684ee453ee60890b9aedce6482a37c8b1aed11f1b5c916682a40ad87/68747470733a2f2f626f786564636f64652e756b2f6368616c6c656e67652d6e65772e676966)](https://camo.githubusercontent.com/d7572cb6684ee453ee60890b9aedce6482a37c8b1aed11f1b5c916682a40ad87/68747470733a2f2f626f786564636f64652e756b2f6368616c6c656e67652d6e65772e676966)

Version Compatibility
---------------------

[](#version-compatibility)

You'll need PHP &gt;= 7.4 and Laravel 6.x, 7.x or 8.x.

Getting Started
---------------

[](#getting-started)

A demo project is available at [laravel-challenge-demo](https://github.com/boxed-code/laravel-challenge-demo), see [this commit](https://github.com/boxed-code/laravel-challenge-demo/commit/e7d83c6a719ddafb9412f1aef3285f3bf5a36e55) to view how simple it is to implement.

### Installation

[](#installation)

`composer require boxed-code/laravel-challenge` then run the databse migrations using `./artisan migrate`

### Implementation

[](#implementation)

Modify your User model class to implement `\BoxedCode\Laravel\Auth\Challenge\Contracts\Challengeable` and either optionally use the `BoxedCode\Laravel\Auth\Challenge\Challengeable` trait or implement the the methods defined in the contract yourself.

Next you must add the middleware `\BoxedCode\Laravel\Auth\Challenge\Http\Middleware\RequireAuthentication` to the routes you would like to protect or simply add it to the global stack

### Further Steps

[](#further-steps)

Login an enrol yourself to the default 'email' authentication method at `http://localhost/tfa/email/enrol`, then logout and in again to be challenged for 2FA via email.

To Document
-----------

[](#to-document)

- Overview
- Configuration options (challengeable.php)
- Authentication methods
    - Enabling default methods
        - Email
        - Twilio SMS
        - Twilio Voice (WIP)
        - Google Authenticator \[OTP\]
        - Password (WIP)
    - Custom notification based authentication methods
    - Custom authentication methods
- Challenges
    - Token Generators
    - Lifetimes &amp; Periodic Re-authentication
    - Custom Repositories
- Authentication for different purposes &amp; lifetimes
- Skining / Theming views
- Events

License
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance23

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~102 days

Total

4

Last Release

1914d ago

Major Versions

1.x-dev → 2.02021-02-19

PHP version history (2 changes)1.0PHP ^7.2.5

2.0PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![olsgreen](https://avatars.githubusercontent.com/u/1324164?v=4)](https://github.com/olsgreen "olsgreen (110 commits)")

---

Tags

2fa2factorlaravelmultifactor-authenticationtwo-factor-authentication

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/boxed-code-laravel-challenge/health.svg)

```
[![Health](https://phpackages.com/badges/boxed-code-laravel-challenge/health.svg)](https://phpackages.com/packages/boxed-code-laravel-challenge)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[studio/laravel-totem

A Laravel package to manage your cron jobs through a beautiful dashboard

1.8k1.1M](/packages/studio-laravel-totem)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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