lion / authentication
Library to add 2FA security.
v6.0.1
2026-04-06 18:06 UTC
Requires
- php: >=8.5
Requires (Dev)
- bacon/bacon-qr-code: ^3.0
- infection/infection: ^0.29.14 || ^0.31.0 || ^0.32.0
- lion/test: ^4.1
- overtrue/phplint: ^9.5
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.5 || ^13.0
- pragmarx/google2fa-qrcode: ^3.0
- squizlabs/php_codesniffer: ^3.11 || ^4.0
- 6.x-dev
- v6.0.1
- v6.0.0
- 5.x-dev
- v5.11.0
- v5.10.0
- 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-dependabot/maintenance-b5c4243466
- dev-Sleon4-patch-1
- dev-dependabot/maintenance-325f84d9d6
- dev-support-dependabot/maintenance-325f84d9d6
This package is auto-updated.
Last update: 2026-04-06 18:09:18 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.