Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corbado/example-passkeys-php-symfony
PHP Symfony repository of a sample app that offers passkey authentication.
https://github.com/corbado/example-passkeys-php-symfony
authentication faceid fido2 passkey passkeys passwordless php symfony touchid webauthn
Last synced: 28 days ago
JSON representation
PHP Symfony repository of a sample app that offers passkey authentication.
- Host: GitHub
- URL: https://github.com/corbado/example-passkeys-php-symfony
- Owner: corbado
- Created: 2022-11-29T08:10:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T08:58:07.000Z (2 months ago)
- Last Synced: 2024-10-21T12:30:51.699Z (2 months ago)
- Topics: authentication, faceid, fido2, passkey, passkeys, passwordless, php, symfony, touchid, webauthn
- Language: PHP
- Homepage: https://www.corbado.com/passkeys/php-symfony
- Size: 322 KB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP Symfony Passkey Example App
This is a sample implementation of a PHP Symfony application that offers passkey authentication.
For simple passkey-first authentication, the Corbado UI components are used.Please read the [full blog post](https://www.corbado.com/blog/passkeys-php-symfony) to understand all the required steps for a passkey integration into PHP Symfony apps.
## File structure
```
...
├── .env # Contains all environment variables
├── templates
| ├── home
| | └── index.html.twig # Homepage template
| ├── profile
| | └── index.html.twig # Profile page template
| └── base.html.twig # Layout for our pages
└── src
└── Crontroller
├── ProfileController.php # Responsible to retrieve profile information in backend
└── HomeController.php # Render's our homepage
```## 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/signin#register).Create a .env file with the contents of the .env.example file and paste your own project ID as well as your own API secret.
Make sure to copy all other contents from the .env.example file as well.Also make sure that you have [PHP](https://php.net) as well as [Composer](https://getcomposer.org/) and the [Symfony CLI](https://symfony.com/download) installed and accessible from your shell.
## Usage
Then you can run the project locally by first downloading all dependencies with `composer install`
and start the local instance with `php -S localhost:3000 -t public/`.Now head to [http://localhost:3000](http://localhost:3000) in your browser to see the page.