.. | ||
.github/workflows | ||
assets | ||
bin | ||
config | ||
migrations | ||
public | ||
src | ||
templates | ||
tests | ||
translations | ||
.editorconfig | ||
.env | ||
.env.test | ||
.gitignore | ||
.keep | ||
.php_cs.dist | ||
composer.json | ||
composer.lock | ||
CONTRIBUTING.md | ||
package.json | ||
phpunit.xml.dist | ||
README.md | ||
symfony.lock | ||
webpack.config.js | ||
yarn.lock |
Symfony Demo Application
The "Symfony Demo Application" is a reference application created to show how to develop applications following the Symfony Best Practices.
Requirements
- PHP 7.2.9 or higher;
- PDO-SQLite PHP extension enabled;
- and the usual Symfony application 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
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