Skip to content

symfony/demo

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

This PR was squashed before being merged into the main branch.

Discussion
----------

Simplify logout

I checked the list of Symfony 6.4 features, and this is the only one that I think it fits this application. So, let's use it.

Commits
-------

10277e6 Simplify logout
15962e8

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 13, 2022 11:07
November 22, 2023 18:06
November 23, 2023 13:18
bin
December 2, 2021 16:29
November 24, 2023 15:32
February 14, 2023 09:04
November 23, 2023 13:18
November 23, 2023 13:18
November 24, 2023 15:32
December 8, 2015 17:37
March 30, 2023 15:10
June 1, 2021 19:06
February 13, 2023 14:55
February 2, 2023 21:54
November 22, 2023 18:06
November 22, 2023 18:06
November 22, 2023 18:06
November 22, 2023 18:06

Symfony Demo Application

The "Symfony Demo Application" is a reference application created to show how to develop applications following the Symfony Best Practices.

You can also learn about these practices in the official Symfony Book.

Requirements

Installation

There are 3 different ways of installing this project depending on your needs:

Option 1. Download Symfony CLI and use the symfony binary installed on your computer to run this command:

$ symfony new --demo my_project

Option 2. Download Composer and use the composer binary installed on your computer to run these commands:

# 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:

Deploy on Platform.sh

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 and run this command:

$ cd my_project/
$ symfony serve

Then access the application in your browser at the given URL (https://localhost:8000 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).

On your local machine, you can run this command to use the built-in PHP web server:

$ cd my_project/
$ php -S localhost:8000 -t public/

Tests

Execute this command to run tests:

$ cd my_project/
$ ./bin/phpunit