PHPackages                             rawilk/laravel-webauthn - 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. rawilk/laravel-webauthn

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

rawilk/laravel-webauthn
=======================

Add webauthn functionality to Laravel

v1.1.0(1y ago)2712.9k—10%4[3 PRs](https://github.com/rawilk/laravel-webauthn/pulls)1MITPHPPHP ^8.1|^8.2CI passing

Since Jun 6Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/rawilk/laravel-webauthn)[ Packagist](https://packagist.org/packages/rawilk/laravel-webauthn)[ Docs](https://github.com/rawilk/laravel-webauthn)[ GitHub Sponsors](https://github.com/rawilk)[ RSS](/packages/rawilk-laravel-webauthn/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (10)Versions (13)Used By (1)

> Note: This package is not actively maintained currently, and I'm not sure if I'll end up archiving it or not yet. Use at your own risk.

WebAuthn for Laravel
====================

[](#webauthn-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/222110eda3695a05cb17d18f1c770afb7bd73f350333197fcce038250d287d3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726177696c6b2f6c61726176656c2d776562617574686e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rawilk/laravel-webauthn)[![Tests](https://github.com/rawilk/laravel-webauthn/workflows/Tests/badge.svg?style=flat-square)](https://github.com/rawilk/laravel-webauthn/workflows/Tests/badge.svg?style=flat-square)[![Total Downloads](https://camo.githubusercontent.com/15b2a2b2f2c7d7fb3bfe14e738c6e32c1eff8fdd19008b2bff83cd79dd890dec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726177696c6b2f6c61726176656c2d776562617574686e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rawilk/laravel-webauthn)[![PHP from Packagist](https://camo.githubusercontent.com/2d48a878b92dd6ca2c9adf2e2397aaad37ca58f82b86b8e0ecaddcf1b713b426/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f726177696c6b2f6c61726176656c2d776562617574686e3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rawilk/laravel-webauthn)[![License](https://camo.githubusercontent.com/446acd0ea355d59309371302962760afd5afdd77999c48686b455e991e65b06b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f726177696c6b2f6c61726176656c2d776562617574686e3f7374796c653d666c61742d737175617265)](https://github.com/rawilk/laravel-webauthn/blob/main/LICENSE.md)

[![Social image](https://camo.githubusercontent.com/54c7c2c8f012b42b515933155efd9f477c6e661bae4f06c0974cabc30c6758a3/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f576562417574686e253230666f722532304c61726176656c2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d726177696c6b2532466c61726176656c2d776562617574686e267061747465726e3d72616e646f6d536861706573267374796c653d7374796c655f31266465736372697074696f6e3d4164642b576562417574686e2b66756e6374696f6e616c6974792b746f2b4c61726176656c2e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d6b6579)](https://camo.githubusercontent.com/54c7c2c8f012b42b515933155efd9f477c6e661bae4f06c0974cabc30c6758a3/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f576562417574686e253230666f722532304c61726176656c2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d726177696c6b2532466c61726176656c2d776562617574686e267061747465726e3d72616e646f6d536861706573267374796c653d7374796c655f31266465736372697074696f6e3d4164642b576562417574686e2b66756e6374696f6e616c6974792b746f2b4c61726176656c2e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d6b6579)

Add the ability to add a hardware based two-factor authentication via a security key, fingerprint or biometric data. Using WebAuthn as a second factor of authentication can help your users better secure their accounts on your application. For more info on WebAuthn, please check out this [guide](https://webauthn.guide/).

Documentation
-------------

[](#documentation)

For more documentation, please visit the [docs](https://randallwilk.dev/docs/laravel-webauthn).

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

[](#installation)

You can install the package via composer:

```
composer require rawilk/laravel-webauthn
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="webauthn-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="webauthn-config"
```

You can view the default configuration here:

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

Please review [my security policy](.github/SECURITY.md) on how to report security vulnerabilities.

Credits
-------

[](#credits)

This package is heavily inspired from Larapass and asbiin/laravel-webauthn.

- [Randall Wilk](https://github.com/rawilk)
- [All Contributors](../../contributors)

Since the `v1.0.1` patch, a considerable amount of the JavaScript portion of this package has been sourced from the [SimpleWebAuthn](https://github.com/MasterKale/SimpleWebAuthn) package made by [Matthew Miller](https://github.com/MasterKale). His copyright has been added to the license file, and copyright notices have been placed in JS files where the code is extremely close to what his is.

Alternatives
------------

[](#alternatives)

This package aims to provide only the bare necessities required to utilize WebAuthn in your application, which provides the freedom to incorporate it into your project based on your own needs and desires. If you're looking for a more complete solution, consider one of these alternatives:

- [Laragear Webauthn](https://github.com/Laragear/WebAuthn)
- [asbiin/laravel-webauthn](https://github.com/asbiin/laravel-webauthn)

Disclaimer
----------

[](#disclaimer)

This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance68

Regular maintenance activity

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 59.8% 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 ~145 days

Recently: every ~225 days

Total

8

Last Release

421d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.0.4PHP ^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e2f599d4d290bbb514a933d4f21c3f18fb093f5f8a9994cb17f5469853c749c?d=identicon)[rawilk](/maintainers/rawilk)

---

Top Contributors

[![rawilk](https://avatars.githubusercontent.com/u/22842525?v=4)](https://github.com/rawilk "rawilk (61 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (23 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (16 commits)")[![eivee](https://avatars.githubusercontent.com/u/39192074?v=4)](https://github.com/eivee "eivee (1 commits)")[![MiniCodeMonkey](https://avatars.githubusercontent.com/u/220535?v=4)](https://github.com/MiniCodeMonkey "MiniCodeMonkey (1 commits)")

---

Tags

webauthnlaravelwebauthnrawilk

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/rawilk-laravel-webauthn/health.svg)

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.7M41](/packages/jeffgreco13-filament-breezy)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[spatie/laravel-passkeys

Use passkeys in your Laravel app

444494.4k16](/packages/spatie-laravel-passkeys)[spatie/laravel-login-link

Quickly login to your local environment

4381.2M1](/packages/spatie-laravel-login-link)[ryangjchandler/laravel-cloudflare-turnstile

A simple package to help integrate Cloudflare Turnstile.

438896.6k2](/packages/ryangjchandler-laravel-cloudflare-turnstile)

PHPackages © 2026

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