Symfony Demo Application

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

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownersymfony/demo
Primary LanguagePHP
Program languagePHP (Language Count: 5)
PlatformBSD, Linux, Mac, Solaris, Windows
License:MIT License
所有者活动
Created At2015-03-24 10:37:08
Pushed At2025-03-19 10:56:57
Last Commit At
Release Count56
Last Release Namev2.6.0 (Posted on )
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count2.5k
Watchers Count124
Fork Count1.7k
Commits Count2.2k
Has Issues Enabled
Issues Count362
Issue Open Count11
Pull Requests Count775
Pull Requests Open Count8
Pull Requests Close Count395
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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