lion / authentication
library to authenticate users in 2 steps
v5.3.0
2025-03-27 15:56 UTC
Requires
- php: >=8.4
Requires (Dev)
- bacon/bacon-qr-code: ^3.0
- infection/infection: ^0.29.14
- lion/test: ^2.0 || ^3.0
- overtrue/phplint: ^9.5
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.0
- pragmarx/google2fa-qrcode: ^3.0
- squizlabs/php_codesniffer: ^3.11
README
🚀 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.