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 merged into the main branch.

Discussion
----------

Tweak the password field

This tweaks the #1284 feature by changing the button that reveals the password. Instead of an independent button, I propose to integrate it right inside the password field, which I think it's a more common practice:

![password-field](https://user-images.githubusercontent.com/73419/208960860-987eebb0-205e-4746-85ff-9fc2a5fa621e.gif)

Commits
-------

1d779cf Tweak the password field
018eebc

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Aug 27, 2022

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

Download Symfony to install the symfony binary on your computer and run this command:

$ symfony new --demo my_project

Alternatively, you can use Composer:

$ composer create-project symfony/symfony-demo my_project

If you want to test the demo without installing anything locally, you can also deploy it on Platform.sh, the official Symfony PaaS:

Deploy on Platform.sh

Usage

There's no need to configure anything to run the application. If you have installed Symfony binary, run this command:

$ cd my_project/
$ symfony serve

Then access the application in your browser at the given URL (https://localhost:8000 by default).

If you don't have the Symfony binary installed, run php -S localhost:8000 -t public/ to use the built-in PHP web server or configure a web server like Nginx or Apache to run the application.

Tests

Execute this command to run tests:

$ cd my_project/
$ ./bin/phpunit