https://github.com/lion-packages/authentication
Library to authenticate users in 2 steps
https://github.com/lion-packages/authentication
2fa 2fa-security 2factor php security
Last synced: 21 days ago
JSON representation
Library to authenticate users in 2 steps
- Host: GitHub
- URL: https://github.com/lion-packages/authentication
- Owner: lion-packages
- License: mit
- Created: 2023-03-02T15:50:17.000Z (about 3 years ago)
- Default Branch: 6.x
- Last Pushed: 2026-03-02T00:24:32.000Z (about 2 months ago)
- Last Synced: 2026-03-02T03:29:23.944Z (about 2 months ago)
- Topics: 2fa, 2fa-security, 2factor, php, security
- Language: PHP
- Homepage: https://dev.lion-packages.com/docs/library/content
- Size: 326 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: .github/README.md
- Contributing: .github/CONTRIBUTING.MD
- License: LICENSE
Awesome Lists containing this project
README

🚀 **Lion-Authentication** Library to authenticate users with the 2FA method.
---
## 📖 Features
✔️ Generate security codes.
✔️ Generate QR codes.
---
## 📦 Installation
Install the authentication using **Composer**:
```bash
composer require lion/authentication pragmarx/google2fa-qrcode bacon/bacon-qr-code
```
## Usage Example
```php
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](https://github.com/lion-packages/authentication/blob/main/LICENSE).