symfony / symfony-demo
Symfony Demo Application
Fund package maintenance!
fabpot
Tidelift
symfony.com/sponsor
Installs: 195 007
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2 463
Watchers: 123
Forks: 1 614
Open Issues: 16
Type:project
Requires
- php: >=8.2
- ext-pdo_sqlite: *
- doctrine/dbal: ^4.0
- doctrine/doctrine-bundle: ^2.11
- doctrine/doctrine-migrations-bundle: ^3.3
- doctrine/orm: ^3.0
- league/commonmark: ^2.1
- symfony/apache-pack: ^1.0
- symfony/asset: 7.1.*
- symfony/asset-mapper: 7.1.*
- symfony/console: 7.1.*
- symfony/dotenv: 7.1.*
- symfony/expression-language: 7.1.*
- symfony/flex: ^2
- symfony/form: 7.1.*
- symfony/framework-bundle: 7.1.*
- symfony/html-sanitizer: 7.1.*
- symfony/http-client: 7.1.*
- symfony/intl: 7.1.*
- symfony/mailer: 7.1.*
- symfony/monolog-bundle: ^3.7
- symfony/polyfill-intl-messageformatter: ^1.12
- symfony/runtime: 7.1.*
- symfony/security-bundle: 7.1.*
- symfony/stimulus-bundle: ^2.12
- symfony/string: 7.1.*
- symfony/translation: 7.1.*
- symfony/twig-bundle: 7.1.*
- symfony/ux-live-component: ^2.6
- symfony/validator: 7.1.*
- symfony/yaml: 7.1.*
- symfonycasts/sass-bundle: ^0.3
- twig/extra-bundle: ^3.3
- twig/intl-extra: ^3.3
- twig/markdown-extra: ^3.3
Requires (Dev)
- dama/doctrine-test-bundle: ^8.0.2
- doctrine/doctrine-fixtures-bundle: ^3.5
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^1.2
- phpstan/phpstan-doctrine: ^1.3
- phpstan/phpstan-symfony: ^1.2
- symfony/browser-kit: 7.1.*
- symfony/css-selector: 7.1.*
- symfony/debug-bundle: 7.1.*
- symfony/maker-bundle: ^1.36
- symfony/phpunit-bridge: 7.1.*
- symfony/stopwatch: 7.1.*
- symfony/web-profiler-bundle: 7.1.*
- twbs/bootstrap: ^4.5.3
- dev-main
- v2.6.0
- v2.5.1
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.2
- v2.0.1
- v2.0.0
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.7
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.7
- v1.2.6
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-recipe-updates
- dev-deps-bump
- dev-pr/1284
- dev-new_paginator
This package is auto-updated.
Last update: 2024-10-19 12:50:02 UTC
README
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
- PHP 8.2.0 or higher;
- PDO-SQLite PHP extension enabled;
- and the usual Symfony application 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:
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