定制 combc/yii2boilerplate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Install Vagrant.

  2. Install Virtualbox.

  3. If you have PHP 5.4+ installed already, you've just installed all prequisites for YiiBoilerplate.

  4. Now just clone the Yii2Boilerplate repo:

    git clone git@github.com/combc/Yii2-Boilerplate.git <yourprojectname>
    
  5. 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

  6. Inside cloned directory run and wait for complete:

    vagrant up
    
  7. 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.

  8. 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 halt the virtual machine before turning off your workstation, virtualbox can fail to shut itself down in time before kill -9 arrives.

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

http://0.0.0.0:1081

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

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 combc/yii2boilerplate 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 18
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 7
  • Forks: 5
  • 开发语言: Shell

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-20