An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

presentation-lion-packages



Latest Stable Version


Total Downloads


License


PHP Version Require

🚀 **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).