PHPackages                             hoang79/passkeyauth - 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. hoang79/passkeyauth

ActiveLibrary

hoang79/passkeyauth
===================

Passkey for Laravel 11

1.0.13(1y ago)050MITPHPPHP ^7.3|^8.0

Since Jul 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hoang-79/laravel11-passkey)[ Packagist](https://packagist.org/packages/hoang79/passkeyauth)[ RSS](/packages/hoang79-passkeyauth/feed)WikiDiscussions 1.0.13 Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (15)Used By (0)

Laravel 11 Passkey Authentication
=================================

[](#laravel-11-passkey-authentication)

**English version below.**

---

Voraussetzungen
---------------

[](#voraussetzungen)

- PHP \[8.2\]
- Laravel \[11\]
- Livewire \[3.0\]
- Jetstream \[5.1\]
- Datenbank (erste Migration bereits ausgeführt)

Einführung
----------

[](#einführung)

Dieses Paket ermöglicht die Verwendung von Passkeys zur Authentifizierung in Laravel 11 Anwendungen. Passkeys sind eine benutzerfreundliche und sichere Alternative zu herkömmlichen Passwörtern. Sie können auf Mobilgeräten und in Passwortmanagern gespeichert werden und ermöglichen eine bequeme und sichere Anmeldung ohne Passwort.

### Vorteile von Passkeys

[](#vorteile-von-passkeys)

- **Benutzerfreundlichkeit**: Kein Bedarf mehr, sich komplexe Passwörter zu merken.
- **Sicherheit**: Verhindert Phishing-Angriffe und Passwortdiebstahl.
- **Kompatibilität**: Funktioniert mit gängigen Passwortmanagern und mobilen Geräten.

Installationsanleitung
----------------------

[](#installationsanleitung)

### Paket installieren

[](#paket-installieren)

1. Fügen Sie das Paket zu Ihrem Laravel-Projekt hinzu:

    ```
    composer require hoang79/passkeyauth
    ```
2. Führen Sie den Passkey-Installer aus, um die notwendigen Anpassungen vorzunehmen:

    ```
    php artisan passkey:install
    ```

### Manuelle Anpassungen

[](#manuelle-anpassungen)

1. Bearbeiten Sie die `.env` Datei:

    - Stellen Sie sicher, dass bei der `APP_URL` kein `http(s)://` steht, sondern nur die Domain. Zum Beispiel:

    ```
    APP_URL=laravel-passkey3.test
    ```
2. Passen Sie den Redirect bei der folgenden Zeile in `config/fortify.php` an:

    ```
    'home' => '/dashboard',
    ```
3. Passen Sie die Mail-Einstellungen in der `.env` Datei an, damit der OTP-Code versendet werden kann:

    ```
    MAIL_MAILER=smtp
    MAIL_HOST=127.0.0.1
    MAIL_PORT=2525
    MAIL_USERNAME="${APP_NAME}"
    MAIL_PASSWORD=null
    MAIL_ENCRYPTION=null
    MAIL_FROM_ADDRESS="hello@example.com"
    MAIL_FROM_NAME="${APP_NAME}"
    ```
4. Stellen Sie sicher, dass die notwendigen Migrationen ausgeführt wurden:

    ```
    php artisan migrate
    ```

Nutzung
-------

[](#nutzung)

Nach der Installation und den notwendigen Anpassungen können Benutzer sich mit Passkeys registrieren und anmelden. Die Registrierung erfolgt über die Eingabe einer E-Mail-Adresse und das Erhalten eines OTP (One Time Password), gefolgt von der Speicherung des Passkeys.

Die Anmeldung erfolgt ebenfalls über die Eingabe der E-Mail-Adresse und das Verwenden des gespeicherten Passkeys.

Zukünftige Features
-------------------

[](#zukünftige-features)

- OTP nochmals versenden
- Mit Mobilnummer und SMS anmelden

Weitere Informationen
---------------------

[](#weitere-informationen)

Weitere Informationen zu Passkeys und deren Verwendung finden Sie in der offiziellen Dokumentation zu WebAuthn und den Passkey-Standards.

---

Laravel 11 Passkey Authentication
=================================

[](#laravel-11-passkey-authentication-1)

Requirements
------------

[](#requirements)

- PHP \[8.2\]
- Laravel \[11\]
- Livewire \[3.0\]
- Jetstream \[5.1\]
- Database (initial migration already run)

Introduction
------------

[](#introduction)

This package enables the use of passkeys for authentication in Laravel 11 applications. Passkeys are a user-friendly and secure alternative to traditional passwords. They can be stored on mobile devices and password managers, allowing for convenient and secure passwordless login.

### Benefits of Passkeys

[](#benefits-of-passkeys)

- **User-Friendly**: No need to remember complex passwords.
- **Security**: Prevents phishing attacks and password theft.
- **Compatibility**: Works with popular password managers and mobile devices.

Installation Guide
------------------

[](#installation-guide)

### Install the Package

[](#install-the-package)

1. Add the package to your Laravel project:

    ```
    composer require hoang79/passkeyauth
    ```
2. Run the Passkey installer to make the necessary adjustments:

    ```
    php artisan passkey:install
    ```

### Manual Adjustments

[](#manual-adjustments)

1. Edit the `.env` file:

    - Ensure that the `APP_URL` does not contain `http(s)://`, only the domain. For example:

    ```
    APP_URL=laravel-passkey3.test
    ```
2. Adjust the redirect in `config/fortify.php`:

    ```
    'home' => '/dashboard',
    ```
3. Update the mail settings in the `.env` file to enable OTP code sending:

    ```
    MAIL_MAILER=smtp
    MAIL_HOST=127.0.0.1
    MAIL_PORT=2525
    MAIL_USERNAME="${APP_NAME}"
    MAIL_PASSWORD=null
    MAIL_ENCRYPTION=null
    MAIL_FROM_ADDRESS="hello@example.com"
    MAIL_FROM_NAME="${APP_NAME}"
    ```
4. Ensure the necessary migrations have been executed:

    ```
    php artisan migrate
    ```

Usage
-----

[](#usage)

After installation and necessary adjustments, users can register and log in using passkeys. Registration involves entering an email address, receiving a One Time Password (OTP), and saving the passkey.

Logging in involves entering the email address and using the saved passkey.

Future Features
---------------

[](#future-features)

- Resend OTP
- Sign in with mobile number and SMS

Further Information
-------------------

[](#further-information)

For more information on passkeys and their use, refer to the official WebAuthn documentation and passkey standards.

---

License
-------

[](#license)

This package is licensed under the MIT License. For more details, see the [LICENSE](LICENSE) file.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

15

Last Release

659d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8580802e3fc8f50c0941c54ae80fc82edc40500b92eca31bbf179fe306839119?d=identicon)[entilan](/maintainers/entilan)

---

Top Contributors

[![hoang-79](https://avatars.githubusercontent.com/u/1428963?v=4)](https://github.com/hoang-79 "hoang-79 (69 commits)")

### Embed Badge

![Health badge](/badges/hoang79-passkeyauth/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

1195.3M72](/packages/web-auth-webauthn-lib)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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