Symfony Demo Application

Symfony演示应用程序。(Symfony Demo Application)

Github星跟蹤圖

Symfony 演示应用程序

"Symfony Demo Application"是为了展示如何按照 Symfony 最佳实践 开发应用程序而创建的参考应用程序。

要求

安装方法

下载 Symfony,在你的电脑上安装 symfony 二进制文件,然后运行这个命令。

$ symfony new --demo my_project.

或者,你也可以使用 Composer。

$ composer create-project symfony/symfony-demo my_project

使用方法

不需要配置任何东西来运行应用程序。如果你已经安装了 Symfony 二进制文件,运行这个命令。

$ cd my_project/
$ symfony serve

然后在浏览器中通过给定的 URL(默认为 https://localhost:8000)访问应用程序。

如果你没有安装 Symfony 二进制文件,运行 php -S localhost:8000 -t public/来使用内置的 PHP web 服务器,或者配置一个像 Nginx 或 Apache 这样的 web 服务器来运行应用程序。

测试

执行这个命令来运行测试。

$ cd my_project/
$ ./bin/phpunit

主要指標

概覽
名稱與所有者symfony/demo
主編程語言PHP
編程語言PHP (語言數: 5)
平台BSD, Linux, Mac, Solaris, Windows
許可證MIT License
所有者活动
創建於2015-03-24 10:37:08
推送於2025-06-02 13:54:17
最后一次提交
發布數57
最新版本名稱v2.7.0 (發布於 )
第一版名稱v1.0.0 (發布於 )
用户参与
星數2.5k
關注者數124
派生數1.7k
提交數2.2k
已啟用問題?
問題數362
打開的問題數10
拉請求數782
打開的拉請求數9
關閉的拉請求數399
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Symfony Demo Application

The "Symfony Demo Application" is a reference application created to show how
to develop applications following the Symfony Best Practices.

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, run this command and access the application in your
browser at the given URL (https://localhost:8000 by default):

$ cd my_project/
$ symfony serve

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