Skip to content

Add passkeys to your PHP laravel application using the Corbado passkey-first authentication solution.

Notifications You must be signed in to change notification settings

corbado/passkeys-php-laravel

Repository files navigation

GitHub Repo Cover

PHP Laravel Passkeys Example Application

This is a sample implementation of the Corbado passkeys-first authentication solution using PHP Laravel. The following packages are being used:

File structure

  • app/Http/Controllers: contains the controllers for handling HTTP requests
  • config: contains the configuration files
  • database/migrations: contains the database migration files, including our custom user table
  • public: contains the publicly accessible files, such as assets
  • resources/views: contains the Blade templates
  • routes/web.php: contains the route definitions
  • .env: environment variables configuration file

Setup

Prerequisites

Please follow the steps in Getting started to create and configure a project in the Corbado developer panel.

You need to have PHP and Composer installed to run it.

Configure environment variables

Use the values you obtained in Prerequisites to configure the following variables inside a .env file you create in the root folder of this project:

CORBADO_PROJECT_ID=pro-XXX
CORBADO_API_SECRET=corbado1_XXX
CORBADO_FRONTEND_API=https://${CORBADO_PROJECT_ID}.frontendapi.cloud.corbado.io
CORBADO_BACKEND_API=https://backendapi.cloud.corbado.io

Usage

Run the project locally

Run

composer install

to install all dependencies.

Finally, you can run the project locally with

php artisan serve

Passkeys support

About

Add passkeys to your PHP laravel application using the Corbado passkey-first authentication solution.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published