firegate666/yii-web-setup
Composer 安装命令:
composer require firegate666/yii-web-setup
包简介
Yii web setup base for your project including vagrant box and xhprof debug panel
README 文档
README
Introduction
This is my template on a clean web setup for a Yii project. This includes having the document root and its public files separated from the protected files and setting up Yii with composer for your project.
Configuration
You also have the possibility to setup defaults configs for your project in
protected/config/main.php
protected/config/console.php
protected/config/test.php
And let your clients override some of the parameters in
protected/config/main.local.php
protected/config/console.local.php
protected/config/test.local.php
Feel free to post your opinion on this approach and let us create a re-usable template/setup for us Yii developers.
Maybe there are also some more dependencies or modules you suggest having by default? Let me know.
How to use this?
- Create your project from this template
composer create-project firegate666/yii-web-setup - Adjust package meta information in composer.json
- That's it, now you are ready to develop your project.
- use git as versioning tool
If your project has different need on dependencies, delete composer.lock, adjust composer.json to your needs and run composer again to install your dependencies.
Development setup
This project is shipped with a vagrant box example setup that you can use to start developing.
- On your development machine install Virtualbox and Vagrant.
- enter vagrant folder
- type vagrant up
It will setup everything you need to start developing. After vagrant is done, open
http://192.168.56.5/
and you will see the default yii installation. This box has xhprof pre-installed and bundled with Yii. If you want to take a look at this cool profiler, open
protected/config/main.local.php
and comment in the configuration. Now you will have a debug panel on each page with a link to the profiler result.
firegate666/yii-web-setup 适用场景与选型建议
firegate666/yii-web-setup 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 23 次下载、GitHub Stars 达 1, 最近一次更新时间为 2015 年 10 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 firegate666/yii-web-setup 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 firegate666/yii-web-setup 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2015-10-18