symfony/symfony-demo
Composer 安装命令:
composer create-project symfony/symfony-demo
包简介
Symfony Demo Application
README 文档
README
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
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
symfony/symfony-demo 适用场景与选型建议
symfony/symfony-demo 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 252.86k 次下载、GitHub Stars 达 2.6k, 最近一次更新时间为 2017 年 07 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 symfony/symfony-demo 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 symfony/symfony-demo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 252.86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2604
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-26