承接 dominus77/yii2-basic-start 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dominus77/yii2-basic-start

Composer 安装命令:

composer create-project dominus77/yii2-basic-start

包简介

Yii2 Start Project Basic Template

README 文档

README

Latest Stable Version License build Scrutinizer Code Quality Code Intelligence Status Total Downloads

The application is built using basic pattern and has a modular structure.

Base components

Pages

  • Home
  • About
  • Contact
  • Check in
  • Login
  • Profile

Modules

  • main
  • users
  • admin
  • rbac (manage web interface)

Functional

  • Reset password
  • Confirmation by email
  • Last visit
  • Console commands
  • RBAC

CSS Themes Bootstrap

The template includes the of the CSS Theme Bootstrap

Switching the theme occurs in the app/config/web.php

Requirements

The minimum requirement by this project template that your Web server supports PHP 5.6

INSTALLATION

Create a project:

composer create-project --prefer-dist --stability=dev dominus77/yii2-basic-start basic-project

or clone the repository for pull command availability:

git clone https://github.com/Dominus77/yii2-basic-start.git basic-project
cd basic-project
composer install

Init an environment:

Run command in the root directory public_html of the project

if Development environment

composer app-init-dev

if Production environment

composer app-init-prod

otherwise choose Wednesday

php init

Create a database, default configure: yii2_basic_start in app/config/common-local.php

$config = [
    //...
    'components' => [
        'db' => [
            'dsn' => 'mysql:host=localhost;dbname=yii2_basic_start',
            //...
        ],
        //...
    ],
    //...
];

Apply migration:

composer migrate-up

Create users, enter the command and follow the instructions:

php yii users/user/create
  • Username: set username;
  • Email: set email username;
  • Password: set password username (min 6 symbol);
  • Status: set status username (0 - blocked, 1 - active, 2 - wait, ? - Help);

See all available commands:

php yii

Initialize RBAC

When initialized, the user with ID:1 is assigned the SuperAdmin role.

composer rbac-init

A command to assign roles to other users:

php yii rbac/roles/assign

To untie:

php yii rbac/roles/revoke

You can then access the application through the following URL:

http://localhost/basic-project/web/

Create .htaccess file or add folder app/web `

AddDefaultCharset utf-8
# Mod_Autoindex
<IfModule mod_autoindex.c>
  # Disable indexes
  Options -Indexes
</IfModule>

# Mod_Rewrite
<IfModule mod_rewrite.c>
  # Enable symlinks
  Options +FollowSymlinks
  # Enable mod_rewrite
  RewriteEngine On

  # If a directory or a file exists, use the request directly
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  # Otherwise forward the request to index.php
  RewriteRule . index.php
</IfModule>

Code Sniffer

composer check-style

TESTING

Create a database, default configure yii2_basic_start_test in app/config/test-local.php

$config = [
    //...
    'components' => [
        'db' => [
            'dsn' => 'mysql:host=localhost;dbname=yii2_basic_start_test',
            //...
        ],
        //...
    ],
    //...
];

Apply migration:

composer migrate-test-up

Run in console

composer build
composer test

License

The BSD License (BSD). Please see License File for more information.

dominus77/yii2-basic-start 适用场景与选型建议

dominus77/yii2-basic-start 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 93 次下载、GitHub Stars 达 6, 最近一次更新时间为 2018 年 02 月 22 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「basic」 「yii2」 「project template」 「Dominus77」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 dominus77/yii2-basic-start 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 dominus77/yii2-basic-start 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 93
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 11
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-02-22