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