| Package Data | |
|---|---|
| Maintainer Username: | bitbeans |
| Maintainer Contact: | jonathan@monarobase.net (Jonathan Thuau) |
| Package Create Date: | 2015-04-23 |
| Package Last Update: | 2021-08-03 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-04 03:03:22 |
| Package Statistics | |
|---|---|
| Total Downloads: | 139,922 |
| Monthly Downloads: | 3,270 |
| Daily Downloads: | 115 |
| Total Stars: | 42 |
| Total Watchers: | 6 |
| Total Forks: | 9 |
| Total Open Issues: | 0 |
Yubikey for Laravel 5
This package is based on the Laravel 4 package by Monarobase.
Add bitbeans/yubikey to composer.json.
"bitbeans/yubikey": "dev-master"
Run composer update to pull down the latest version of Yubikey.
Now open up /config/app.php and add the service provider to your providers array.
'providers' => [
Bitbeans\Yubikey\YubikeyServiceProvider::class,
]
And also the alias.
'aliases' => [
'Yubikey' => Bitbeans\Yubikey\YubikeyFacade::class,
]
You can easily integrate the Yubikey Verification into your authentication system in two steps :
yubikey_identity) in your user tableRun php artisan vendor:publish and modify the config file (PROJECTFOLDER/config/yubikey.php) with your own information.
use YubiKey;
try {
$yubikey_auth = Yubikey::verify(Input::get('otp'));
$yubikey_params = Yubikey::getParameters();
$yubikey_identity = Yubikey::getParameter('identity');
} catch (\Exception $exception) {
$error = $e->getMessage();
}