combc/yii2boilerplate
Composer 安装命令:
composer create-project combc/yii2boilerplate
包简介
Structure for enterprise-grade websites for Yii2 framework.
README 文档
README
Structure for enterprise-grade websites for Yii2 framework.
Easiest initial deploy ever
-
Install Vagrant.
-
Install Virtualbox.
-
If you have PHP 5.4+ installed already, you've just installed all prequisites for YiiBoilerplate.
-
Now just clone the Yii2Boilerplate repo:
git clone git@github.com/combc/Yii2-Boilerplate.git <yourprojectname> -
Create your own github personal API tokens https://github.com/blog/1509-personal-api-tokens. Paste it into a Vagrantfile.
Example:
s.args = [ #YOUR GITHUB TOKEN HERE "d1d8c6a9e9b706a596b96b9994bf0549109083ba", ... ]Note: Yii2Install
-
Inside cloned directory run and wait for complete:
vagrant up -
You're done. Open up the http://yii2frontend.dev:8080/. It's your future frontend. Open up http://yii2backend.dev:8080/. It's your future backend. You can start working.
-
Change the origin repo to the new repository in order to push your new project:
git remote remove origin git remote add origin <NEW-GIT-REMOTE>Don't forget to
vagrant haltthe virtual machine before turning off your workstation, virtualbox can fail to shut itself down in time beforekill -9arrives.
Yii 2 Advanced Application Template
Yii2Boilerplate uses Yii 2 Advanced Application Template is a skeleton Yii 2 application best for developing complex Web applications with multiple tiers.
Vagrant config
Database
You can select up data between MySQL 5.6 and Postgres 9.3. Enter the Vagrantfile name of the database, default mysql.
Example:
s.args = [
...
#YOUR DATABASE TYPE HERE [mysql|pgsql]
"pgsql"
]
If you have chosen MySQL:
PhpMyAdmin adress: http://localhost:8080/phpmyadmin/
If you have chosen Postgres:
PhpPgAdmin adress: http://localhost:8080/phppgadmin/
Database default credential:
login: vagrant
password: vagrant
database: yii2boilerplate
database for tests: yii2boilerplate_tests
MailCatcher
MailCatcher runs a super simple SMTP server which catches any message sent to it to display in a web interface.
smtp://0.0.0.0:1026
Default common/config/main-local.php:
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'useFileTransport' => false,
],
Virtual Machine config
Use the vagrantfile to the desired options of memory and cpu.
DEFAULT: memory = 1024 MB, cpus = 2
config.vm.provider "virtualbox" do |v|
#v.memory = 512
#v.cpus = 1
v.memory = 1024
v.cpus = 2
end
More http://docs.vagrantup.com/v2/virtualbox/configuration.html
XDebug conf
XDebug SessionId: XDEBUG
XDebug port 9000
On run configuration:
Project URL: http://yii2backend.dev:8080/
Index file: backend/web/index.php
or
Project URL: http://yii2frontend.dev:8080/
Index file: backend/web/index.php
The installed
-
composer -
codecept -
phpdcd -
phpmd -
phpcs -
phpcpd -
phpdox
License
And of course:
MIT: LICENSE
====
ComBC
http://combc.eu
combc/yii2boilerplate 适用场景与选型建议
combc/yii2boilerplate 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 10, 最近一次更新时间为 2015 年 02 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「boilerplate」 「vagrant」 「yii2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 combc/yii2boilerplate 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 combc/yii2boilerplate 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 combc/yii2boilerplate 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
PHP class to extend when building a WordPress plugin allowing you to follow smart plugin setup standards.
Vagrant(centos7) for web developers.
Anax htmlform module.
Laravel 5.7 Boilerplate based on Bootstrap 4 and Tabler for Backend.
WordPress Plugin Framework
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-20