Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corbado/passkeys-php-laravel
Add passkeys to your PHP laravel application using the Corbado passkey-first authentication solution.
https://github.com/corbado/passkeys-php-laravel
faceid fido2 javascript laravel passkey passkeys php touchid webauthn
Last synced: 15 days ago
JSON representation
Add passkeys to your PHP laravel application using the Corbado passkey-first authentication solution.
- Host: GitHub
- URL: https://github.com/corbado/passkeys-php-laravel
- Owner: corbado
- Created: 2024-12-30T09:42:35.000Z (25 days ago)
- Default Branch: main
- Last Pushed: 2025-01-08T12:22:11.000Z (16 days ago)
- Last Synced: 2025-01-08T12:38:04.743Z (16 days ago)
- Topics: faceid, fido2, javascript, laravel, passkey, passkeys, php, touchid, webauthn
- Language: PHP
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Laravel Passkeys Example Application
This is a sample implementation of the [Corbado passkeys-first authentication solution](https://www.corbado.com) using
PHP Laravel. The following packages are being used:- [Corbado web-js](https://github.com/corbado/javascript/tree/develop/packages/web-js)
- [Corbado PHP SDK](https://github.com/corbado/corbado-php)## 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](https://docs.corbado.com/overview/getting-started) to create and configure
a project in the [Corbado developer panel](https://app.corbado.com/).You need to have [PHP](https://www.php.net/downloads) and [Composer](https://getcomposer.org/download/) installed to run it.
### Configure environment variables
Use the values you obtained in [Prerequisites](#prerequisites) to configure the following variables inside a `.env`
file you create in the root folder of this project:```sh
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
```sh
composer install
```to install all dependencies.
Finally, you can run the project locally with
```sh
php artisan serve
```## Passkeys support
- Community for Developer Support: https://bit.ly/passkeys-community
- Passkeys Debugger: https://www.passkeys-debugger.io/
- Passkey Subreddit: https://www.reddit.com/r/passkey/