PHPackages                             bitbeans/yubikey - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. bitbeans/yubikey

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

bitbeans/yubikey
================

Yubikey for Laravel

42152.8k—4.8%9PHP

Since Aug 3Pushed 4y ago6 watchersCompare

[ Source](https://github.com/bitbeans/Yubikey)[ Packagist](https://packagist.org/packages/bitbeans/yubikey)[ RSS](/packages/bitbeans-yubikey/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yubikey
=======

[](#yubikey)

Yubikey for Laravel 5

This package is based on the [Laravel 4 package](https://github.com/Monarobase/Yubikey) by Monarobase.

[Buy a Yubikey](https://store.yubico.com)

[Yubico API Key Generator](https://upgrade.yubico.com/getapikey/)

Installation
------------

[](#installation)

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 :

- Add a field (eg `yubikey_identity`) in your user table
- now check your user with username/email + password + yubikey\_identity

Configuration
-------------

[](#configuration)

Run `php artisan vendor:publish` and modify the config file (PROJECTFOLDER/config/yubikey.php) with your own information.

Example
-------

[](#example)

```
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();
}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/71890f3f71e37b05284db717f5070e1bfaa0f049b8d90335674265b43fb2c6ec?d=identicon)[bitbeans](/maintainers/bitbeans)

---

Top Contributors

[![bitbeans](https://avatars.githubusercontent.com/u/1482102?v=4)](https://github.com/bitbeans "bitbeans (12 commits)")[![L3o-pold](https://avatars.githubusercontent.com/u/4710495?v=4)](https://github.com/L3o-pold "L3o-pold (10 commits)")[![elyerinhaughie](https://avatars.githubusercontent.com/u/33913289?v=4)](https://github.com/elyerinhaughie "elyerinhaughie (5 commits)")[![paragonie-scott](https://avatars.githubusercontent.com/u/11591518?v=4)](https://github.com/paragonie-scott "paragonie-scott (2 commits)")[![developerdino](https://avatars.githubusercontent.com/u/747501?v=4)](https://github.com/developerdino "developerdino (1 commits)")[![Quezler](https://avatars.githubusercontent.com/u/3179271?v=4)](https://github.com/Quezler "Quezler (1 commits)")

### Embed Badge

![Health badge](/badges/bitbeans-yubikey/health.svg)

```
[![Health](https://phpackages.com/badges/bitbeans-yubikey/health.svg)](https://phpackages.com/packages/bitbeans-yubikey)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
