PHPackages                             websightnl/yii2-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. websightnl/yii2-yubikey

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

websightnl/yii2-yubikey
=======================

Component wrapper for the enygma/yubikey library

025PHP

Since Aug 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/websightnl/yii2-yubikey)[ Packagist](https://packagist.org/packages/websightnl/yii2-yubikey)[ RSS](/packages/websightnl-yii2-yubikey/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yubikey Component for Yii2
==========================

[](#yubikey-component-for-yii2)

### Setup

[](#setup)

Get your API key and client ID from .

```
// app/config/main.php
return [
    ...
    'components' => [
        ...
        'yubikey' => [
            'class' => 'websightnl\yii2yubikey\Yubikey',
            'apiKey' => '',
            'clientId' => '',
        ]
        ...
    ]
    ...
];

```

### Basic Usage

[](#basic-usage)

```
$status = Yii::$app->yubikey->validate('tokenfromuser');

```

### Settings

[](#settings)

The component supports most of the parameters of the original library. For more information, please see .

```
// app/config/main.php
return [
    ...
    'components' => [
        ...
        'yubikey' => [
            'class' => 'websightnl\yii2yubikey\Yubikey',
            'apiKey' => '',
            'clientId' => '',
            // Enable HTTPS for the connection (defaults to true)
            'secure' => true,
            // Custom list of validation hosts
            'hosts' => ['validate1.example.org', 'validate2.example.org'],
            // Additonally, the library also supports simultaneous connections to multiple servers.
            'multiServer' => false
            // Additionally, you can also switch on and off this aggregation of the results and go with only the "first in" response
            'firstIn' => true
        ]
        ...
    ]
    ...
];

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/2834bc8d1ea16f434606e47ba6ee32f287dc875737db778ed10532244338c461?d=identicon)[eborned](/maintainers/eborned)

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

791.3M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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