symfony/demo
Fork: 1611 Star: 2480 (更新于 2024-11-17 11:29:10)
license: MIT
Language: PHP .
Symfony Demo Application
最后发布版本: v2.6.0 ( 2024-06-14 18:08:13)
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
- 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
最近版本更新:(数据更新于 2024-10-08 09:02:08)
2024-06-14 18:08:13 v2.6.0
2024-02-16 18:57:48 v2.5.1
2023-12-20 19:47:46 v2.5.0
2023-11-30 20:43:01 v2.4.0
2023-07-21 21:42:57 v2.3.0
2023-03-08 19:03:34 v2.2.3
2023-02-14 16:50:30 v2.2.2
2022-12-22 16:31:13 v2.2.1
2022-12-02 17:16:49 v2.2.0
2022-10-28 16:23:49 v2.1.2
主题(topics):
demo, php, symfony, symfony-application
symfony/demo同语言 PHP最近更新仓库
2024-11-20 23:58:25 laravel/framework
2024-11-20 18:39:23 danielmiessler/SecLists
2024-11-16 21:54:23 w7corp/easywechat
2024-11-16 04:49:03 coollabsio/coolify
2024-11-13 23:19:14 symfony/symfony
2024-11-13 22:53:21 symfony/var-dumper