lion / authentication
Library to add 2FA security.
Installs: 706
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
pkg:composer/lion/authentication
Requires
- php: >=8.5
Requires (Dev)
- bacon/bacon-qr-code: ^3.0
- infection/infection: ^0.29.14 || ^0.31.0
- lion/test: ^2.0 || ^3.0 || ^4.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
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.