Download the PHP package comes/simpleauthenticator without Composer
On this page you can find all versions of the php package comes/simpleauthenticator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download comes/simpleauthenticator
More information about comes/simpleauthenticator
Files in comes/simpleauthenticator
Package simpleauthenticator
Short Description A PHP library for implementing Google Authenticator's two-factor authentication (2FA) with Laravel, ensuring enhanced security for user authentication.
License MIT
Homepage https://github.com/comes/simpleauthenticator
Informations about the package simpleauthenticator
This is a simple implementation of the google authenticator algorithm
The SimpleAuthenticator package provides a straightforward implementation of the Google Authenticator algorithm for Laravel applications. It enables easy generation of one-time passwords (OTPs) based on a provided secret key.
Read more about the Google Authenticator algorithm in the RFC 6238 or check wikipedia TOTP
Usage
To use the SimpleAuthenticator, create an instance of the SimpleAuthenticator class by providing the secret key. Then, you can call the generate()
method to generate the one-time password.
Laravel Integration
The SimpleAuthenticator package provides a Laravel command to generate OTPs. To use it, you need to publish the package configuration and add the secret keys to the configuration file.
After publishing the configuration, you can add your secret keys to the config/simpleauthenticator.php file. Then, you can use the otp
command to generate an OTP for a specific app:
Testing
Testing
You can run the tests using Pest:
Changelog
Please see the Latest Release for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Jeremias Wolff
- All Contributors
License
The MIT License (MIT). Please see License File for more information.