lion/authentication

library to authenticate users in 2 steps

v5.3.0 2025-03-27 15:56 UTC

This package is auto-updated.

Last update: 2025-03-29 22:59:50 UTC


README

Lion-Packages Logo

Latest Stable Version Total Downloads License PHP Version Require

🚀 Lion-Authentication Library to authenticate users with the 2FA method.

📖 Features

✔️ Generate security codes.
✔️ Generate QR codes.

📦 Installation

Install the authentication using Composer:

composer require lion/authentication pragmarx/google2fa-qrcode bacon/bacon-qr-code

Usage Example

use Lion\Authentication\Auth2FA;

$auth2fa = new Auth2FA();

$qr = $auth2fa->qr('company_name', 'company_email', 200); // default size of 400

📝 License

The authentication is open-sourced software licensed under the MIT License.