PHPackages                             bluehe/app-basic - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. bluehe/app-basic

ActiveProject[Framework](/categories/framework)

bluehe/app-basic
================

APP Basic Project Template

1.0(7y ago)011[1 PRs](https://github.com/bluehe/app-basic/pulls)BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jun 28Pushed 5y agoCompare

[ Source](https://github.com/bluehe/app-basic)[ Packagist](https://packagist.org/packages/bluehe/app-basic)[ Docs](http://www.wzgxpt.com/)[ RSS](/packages/bluehe-app-basic/feed)WikiDiscussions rky-basic Synced 3d ago

READMEChangelogDependencies (21)Versions (7)Used By (0)

基于yii2的管理系统，运行环境与yii2(php&gt;=5.4)一致。旨在为yii2爱好者提供一个基础功能稳定完善的系统，使开发者更专注于业务功能开发。 项目没有对yii2做任何的修改、封装，但是把yii2的一些优秀特性用在了项目上。

[![Latest Stable Version](https://camo.githubusercontent.com/e5a2188fc11bada277d4831d1070096aba222403fa4a6ae0a6731013c8e87391/68747470733a2f2f706f7365722e707567782e6f72672f626c756568652f6170702d62617369632f762f737461626c65)](https://packagist.org/packages/bluehe/app-basic)[![Latest Unstable Version](https://camo.githubusercontent.com/bec09b401e31c7e4ca2a5933edbff761831d549183bcea009a226616867aeb15/68747470733a2f2f706f7365722e707567782e6f72672f626c756568652f6170702d62617369632f762f756e737461626c65)](https://packagist.org/packages/bluehe/app-basic)[![License](https://camo.githubusercontent.com/7ba894cb177456e8d5fefd6a3329605e46f735ad53b6bbb492b34b491d1e5417/68747470733a2f2f706f7365722e707567782e6f72672f626c756568652f6170702d62617369632f6c6963656e7365)](https://packagist.org/packages/bluehe/app-basic)[![Build Status](https://camo.githubusercontent.com/eefb748e055bc5673ea3bf8c6854fda377d1066ddea436fefefca7ae87cb5684/68747470733a2f2f7777772e7472617669732d63692e6f72672f626c756568652f6170702d62617369632e7376673f6272616e63683d6d6173746572)](https://www.travis-ci.org/bluehe/app-basic)

更新记录
----

[](#更新记录)

0.1.0 版本基础功能开发

帮助
--

[](#帮助)

1. QQ 395868537
2. Email

功能
--

[](#功能)

- 多登录注册
- 短信接口
- 站点状态控制

安装
--

[](#安装)

前置条件: 如未特别说明，本文档已默认您把php命令加入了环境变量，如果您未把php加入环境变量，请把以下命令中的php替换成/path/to/php

1. 使用归档文件(简单，适合没有yii2经验者)

    > 使用此方式安装，后台超管用户名和密码会在安装过程中让您填入

    1. 下载源码
    2. 解压到目录
    3. 配置web服务器(参见下面)
    4. 完成
2. 使用composer (`推荐使用此方式安装`)

    > 使用此方式安装，默认的后台超级管理员用户名admin密码1234

    > composer的安装以及国内镜像设置请点击 [此处](http://www.phpcomposer.com/)

    > 以下命令默认您已全局安装composer，如果您是局部安装的composer:请使用php /path/to/composer.phar来替换以下命令中的composer

    1. 使用composer下创建项目

        ```
            $ composer create-project bluehe/app-basic webApp
        ```
    2. 依次执行以下命令初始化yii2框架以及导入数据库

        ```
        $ cd webApp
        $ php ./init --env=Development #初始化yii2框架，线上环境请使用--env=Production
        $ php ./yii migrate/up --interactive=0 #导入 sql数据库，执行此步骤之前请先到common/config/main-local.php修改成正确的数据库配置
        ```
    3. 配置web服务器(参加下面)
    4. 完成

附:web服务器配置(注意是设置"path/to/app/web为根目录)

- php内置web服务器(仅可用于开发环境,当您的环境中没有web服务器时)

```
 cd /path/to/app-basic
 php ./yii serve

```

- Apache

```
 DocumentRoot "path/to/app/web"

     # 开启 mod_rewrite 用于美化 URL 功能的支持（译注：对应 pretty URL 选项）
     RewriteEngine on
     # 如果请求的是真实存在的文件或目录，直接访问
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     # 如果请求的不是真实文件或目录，分发请求至 index.php
     RewriteRule . index.php

     # ...其它设置...

```

- Nginx

```
server {
    server_name  localhost;
    root   /path/to/app/web;
    index  index.php index.html index.htm;
    try_files $uri $uri/ /index.php?$args;

    location ~ /api/(?!index.php).*$ {
       rewrite /api/(.*) /api/index.php?r=$1 last;
    }

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~208 days

Total

2

Last Release

2669d ago

Major Versions

0.0.1 → 1.02019-01-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/b436024cb44152832154f5bf235f7b6578b51226561af412ddc359e9f2e2a04c?d=identicon)[bluehe](/maintainers/bluehe)

---

Top Contributors

[![he179611207](https://avatars.githubusercontent.com/u/20549487?v=4)](https://github.com/he179611207 "he179611207 (218 commits)")

---

Tags

frameworkyii2advancedproject template

### Embed Badge

![Health badge](/badges/bluehe-app-basic/health.svg)

```
[![Health](https://phpackages.com/badges/bluehe-app-basic/health.svg)](https://phpackages.com/packages/bluehe-app-basic)
```

###  Alternatives

[izyue/yii2-app-advanced

Yii 2 Advanced Project Template

1281.9k](/packages/izyue-yii2-app-advanced)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
