Download the PHP package renderbit/backpack-2fa without Composer

On this page you can find all versions of the php package renderbit/backpack-2fa. 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 backpack-2fa

Backpack 2FA

2FA integration for Laravel Backpack using Fortify
Provides Google 2-Factor Authentication for Backpack admin users, including QR codes, recovery codes, and a custom challenge view.

Package Overview

This package enables secure two-factor authentication for Laravel Backpack admin users. It integrates:

Features

Installation

  1. Require the package via Composer:

  2. Publish configuration and views (optional):

  3. Verify your backpack guard is set in config/auth.php:

  4. Add the TwoFactorAuthenticatable trait from Laravel\Fortify\TwoFactorAuthenticatable to your authenticable model.

  5. Clear config cache:

Routes

Route HTTP Method Description
/admin/two-factor GET 2FA dashboard: view status, enable/disable 2FA
/admin/setup-two-factor GET Setup 2FA QR code for the user
/admin/two-factor/enable POST Enable 2FA for the logged-in user
/admin/two-factor/disable POST Disable 2FA for the logged-in user
/admin/two-factor/recovery-codes POST Regenerate recovery codes
/admin/two-factor/recovery-codes-download POST Download recovery codes as a .txt file
/admin/two-factor/cancel GET Cancel the 2FA setup flow
/admin/two-factor-challenge GET Display Fortify 2FA login challenge form
/admin/two-factor-challenge POST Submit Fortify 2FA login challenge form

All /admin routes use the backpack guard and Backpack admin middleware automatically.

Middleware

Summary - Package Installation in New Projects

License

MIT License © 2025 Renderbit Technologies


All versions of backpack-2fa with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0 || ^11.0 || ^12.0
backpack/crud Version ^6.0
pragmarx/google2fa-qrcode Version ^2.0
laravel/fortify Version ^1.31
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 renderbit/backpack-2fa contains the following files

Loading the files please wait ...