symfony/demo
Fork: 1600 Star: 2426 (更新于 2024-05-12 16:21:14)
license: MIT
Language: PHP .
Symfony Demo Application
最后发布版本: v2.5.1 ( 2024-02-16 18:57:48)
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-04-26 02:05:51)
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
2022-07-22 15:58:35 v2.1.1
主题(topics):
demo, php, symfony, symfony-application
symfony/demo同语言 PHP最近更新仓库
2024-05-10 11:01:12 wp-graphql/wp-graphql
2024-05-10 00:12:03 andreaselia/laravel-api-to-postman
2024-05-09 11:10:21 firefly-iii/firefly-iii
2024-05-08 17:14:52 CakeDC/users
2024-05-07 16:30:06 jackalope/jackalope-doctrine-dbal
2024-05-06 12:00:32 symfony/maker-bundle