PHPackages                             certly/laravel-u2f - 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. [Security](/categories/security)
4. /
5. certly/laravel-u2f

ActiveLibrary[Security](/categories/security)

certly/laravel-u2f
==================

U2F support for laravel 5 (forked from lahaxearnaud/laravel-u2f)

v1.6(10y ago)93434[1 PRs](https://github.com/certly/laravel-u2f/pulls)MITPHPPHP &gt;=5.3.0

Since May 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/certly/laravel-u2f)[ Packagist](https://packagist.org/packages/certly/laravel-u2f)[ Docs](https://github.com/certly/laravel-u2f)[ RSS](/packages/certly-laravel-u2f/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (16)Used By (0)

laravel-u2f
===========

[](#laravel-u2f)

[![Code Climate](https://camo.githubusercontent.com/af815dd1ddb389b28e8aba157b2b0cf4459a15bdf4fbeb2615a9838c9a49e60a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f636572746c792f6c61726176656c2d7532662f6261646765732f6770612e737667)](https://codeclimate.com/github/certly/laravel-u2f) [![Build Status](https://camo.githubusercontent.com/ffcccb23e113d4c5b7c988811b2b507e93ae3d70f777a8d7f6dc928af12f8dd8/68747470733a2f2f7472617669732d63692e6f72672f636572746c792f6c61726176656c2d7532662e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/certly/laravel-u2f)

Integrate FIDO U2F into Laravel 5.x applications. You'll need to be accessing your application from an [App ID compliant](https://developers.yubico.com/U2F/App_ID.html) domain; `localhost` support is finicky.

Install
-------

[](#install)

```
composer require certly/laravel-u2f
```

In `config/app.php`, add the provider `Certly\U2f\LaravelU2fServiceProvider::class` to the providers array and `'U2f' => Certly\U2f\U2fServiceFacade::class` to the aliases array.

### Publishing

[](#publishing)

This will copy the needed resources (views, CSS, and JavaScript) to your project so you can modify them.

```
php artisan vendor:publish --provider="Certly\U2f\U2fServiceProvider"
php artisan migrate
```

You can add the following to your `mix.scripts` call if you're using Elixir to automatically include the needed JavaScript in your central JavaScript file.

```
elixir(function(mix) {
    mix.scripts([
        // ...
        'u2f/app.js',
        'u2f/u2f.js',
```

The included views assume there is an `app` view. If this isn't the case, you'll need to manually modify the views in the `u2f` folder (under `resources/views`).

### Middleware

[](#middleware)

In the `app/Http/Kernel.php` file, add the following to `$routeMiddleware`. This middleware is called internally by the package, so it is important that it is present.

```
protected $routeMiddleware = [
    // ...
    'u2f' => Certly\U2f\Http\Middleware\U2f::class,
];
```

Usage
-----

[](#usage)

### Middleware

[](#middleware-1)

```
    Route::get('admin/profile', ['middleware' => ['auth', 'u2f'], function () {
        //
    }]);
```

### Configuration

[](#configuration)

`config/u2f.php` is commented and will be created when you publish the provider via the above command.

Security
--------

[](#security)

Security issues can be reported via [HackerOne](https://hackerone.com/certly) or via email at .

Credits
-------

[](#credits)

- [Arnaud LAHAXE](https://github.com/lahaxearnaud)
- [Ian Carroll](https://github.com/iangcarroll)

License
-------

[](#license)

[MIT](LICENSE.md)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 68.1% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~14 days

Total

15

Last Release

3812d ago

Major Versions

v0.7 → v1.02015-10-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9427459fcd6e4ae54e1d876db7738202a9b6982441aa5950ccc6ca86d08cd28?d=identicon)[iangcarroll](/maintainers/iangcarroll)

---

Top Contributors

[![iangcarroll](https://avatars.githubusercontent.com/u/1280719?v=4)](https://github.com/iangcarroll "iangcarroll (47 commits)")[![lahaxearnaud](https://avatars.githubusercontent.com/u/1364221?v=4)](https://github.com/lahaxearnaud "lahaxearnaud (17 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (4 commits)")[![mohnjoosemiller](https://avatars.githubusercontent.com/u/3836514?v=4)](https://github.com/mohnjoosemiller "mohnjoosemiller (1 commits)")

---

Tags

otpsecurityu2f

### Embed Badge

![Health badge](/badges/certly-laravel-u2f/health.svg)

```
[![Health](https://phpackages.com/badges/certly-laravel-u2f/health.svg)](https://phpackages.com/packages/certly-laravel-u2f)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

8569.6M19](/packages/spatie-laravel-csp)[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

241641.4k1](/packages/tzsk-otp)

PHPackages © 2026

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