Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teamhanko/symfony-example
A PHP example app using Symfony and Hanko for authentication
https://github.com/teamhanko/symfony-example
authentication jwt passkeys passkeys-demo php symfony
Last synced: about 8 hours ago
JSON representation
A PHP example app using Symfony and Hanko for authentication
- Host: GitHub
- URL: https://github.com/teamhanko/symfony-example
- Owner: teamhanko
- Created: 2023-06-13T16:39:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-06T09:59:12.000Z (about 1 year ago)
- Last Synced: 2024-07-30T19:49:11.331Z (4 months ago)
- Topics: authentication, jwt, passkeys, passkeys-demo, php, symfony
- Language: PHP
- Homepage:
- Size: 4.4 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
Symfony Demo Application
========================The "Symfony Demo Application" is a reference application created to show how
to develop applications following the [Symfony Best Practices][1].You can also learn about these practices in [the official Symfony Book][5].
Requirements
------------* PHP 8.1.0 or higher;
* PDO-SQLite PHP extension enabled;
* and the [usual Symfony application requirements][2].Installation
------------There are 3 different ways of installing this project depending on your needs:
**Option 1.** [Download Symfony CLI][4] and use the `symfony` binary installed
on your computer to run this command:```bash
$ symfony new --demo my_project
```**Option 2.** [Download Composer][6] and use the `composer` binary installed
on your computer to run these commands:```bash
# you can create a new project based on the Symfony Demo project...
$ composer create-project symfony/symfony-demo my_project# ...or you can clone the code repository and install its dependencies
$ git clone https://github.com/symfony/demo.git my_project
$ cd my_project/
$ composer install
```**Option 3.** Click the following button to deploy this project on Platform.sh,
the official Symfony PaaS, so you can try it without installing anything locally:Usage
-----There's no need to configure anything before running the application. There are
2 different ways of running this application depending on your needs:**Option 1.** [Download Symfony CLI][4] and run this command:
```bash
$ cd my_project/
$ symfony serve
```Then access the application in your browser at the given URL ( by default).
**Option 2.** Use a web server like Nginx or Apache to run the application
(read the documentation about [configuring a web server for Symfony][3]).On your local machine, you can run this command to use the built-in PHP web server:
```bash
$ cd my_project/
$ php -S localhost:8000 -t public/
```Tests
-----Execute this command to run tests:
```bash
$ cd my_project/
$ ./bin/phpunit
```[1]: https://symfony.com/doc/current/best_practices.html
[2]: https://symfony.com/doc/current/setup.html#technical-requirements
[3]: https://symfony.com/doc/current/setup/web_server_configuration.html
[4]: https://symfony.com/download
[5]: https://symfony.com/book
[6]: https://getcomposer.org/