lion / authentication
library to authenticate users in 2 steps
v5.9.0
2025-10-01 20:55 UTC
Requires
- php: >=8.4
Requires (Dev)
- bacon/bacon-qr-code: ^3.0
- infection/infection: ^0.29.14 || ^0.31.0
- 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 || ^4.0
- 5.x-dev
- v5.9.0
- v5.8.0
- v5.7.0
- v5.6.0
- v5.5.0
- v5.4.0
- v5.3.0
- v5.2.0
- v5.1.0
- v5.0.0
- 4.x-dev
- v4.0.0
- 3.x-dev
- v3.1.0
- v3.0.0
- 2.x-dev
- v2.0.0
- 1.x-dev
- v1.0.0
- dev-main
- dev-dependabot/composer/infection/infection-0.31.2
- dev-dependabot/composer/squizlabs/php_codesniffer-4.0.0
- dev-Sleon4-patch-1
- dev-Sleon4-patch-2
- dev-support
This package is auto-updated.
Last update: 2025-10-01 20:59:36 UTC
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.