2017 © Pedro Peláez
 

project symfony-demo

Symfony Demo Application

image

symfony/symfony-demo

Symfony Demo Application

  • Wednesday, July 4, 2018
  • by fabpot
  • Repository
  • 131 Watchers
  • 1294 Stars
  • 27,082 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 761 Forks
  • 14 Open issues
  • 54 Versions
  • 23 % Grown

The README.md

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., (*2)

Requirements

Installation

There are 3 different ways of installing this project depending on your needs:, (*3)

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

symfony new --demo my_project

Option 2. [Download Composer][6] and use the composer binary installed on your computer to run these commands:, (*5)

# 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:, (*6)

Deploy on Platform.sh , (*7)

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:, (*8)

Option 1. Download Symfony CLI and run this command:, (*9)

cd my_project/
symfony serve

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

Option 2. Use a web server like Nginx or Apache to run the application (read the documentation about configuring a web server for Symfony)., (*11)

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

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

Tests

Execute this command to run tests:, (*13)

cd my_project/
./bin/phpunit

The Versions