PHPackages                             ztj/frames - 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. ztj/frames

ActiveProject

ztj/frames
==========

'I im news frames'

1.0.0.00(8y ago)08MITPHP

Since Apr 3Pushed 8y agoCompare

[ Source](https://github.com/tutenghaojiao/frame)[ Packagist](https://packagist.org/packages/ztj/frames)[ RSS](/packages/ztj-frames/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

后盾框架学习
======

[](#后盾框架学习)

- ##### Model （模型）表示应用程序核心（比如数据库记录列表）。

    [](#model---------模型表示应用程序核心比如数据库记录列表)
- ##### View （视图）显示数据（数据库记录）。

    [](#view-----------视图显示数据数据库记录)
- ##### Controller （控制器）处理输入（写入数据库记录）。

    [](#controller-----控制器处理输入写入数据库记录)

文件目录
----

[](#文件目录)

#### 1、app 业务实现;应用目录，开发者

[](#1app----------------业务实现应用目录开发者)

```
        ｜—home                      前台文件目录
            ｜—controller            控制器类
            ｜—view                  视图

        ｜—admin                     后台文件目录
            ｜—controller            控制器类
            ｜—view                  视图

```

#### 2、frames 框架核心资源文件

[](#2frames-------------框架核心资源文件)

```
       ｜—core                       核心框架
           ｜—Controller.php         控制器类
           ｜—Boot.php               视图

       ｜—model                      模块
           ｜—Base.php               控制器类
           ｜—Model.php              视图

       ｜—view                       视图层
           ｜—Base.php               控制器类
           ｜—View.php               视图

```

#### 3、public 公共支持

[](#3public-------------公共支持)

```
      ｜—view                        模板文件目录、静态资源

      ｜—index.php                   单一入口文件

```

#### 4、system 配置

[](#4system-------------配置)

```
      ｜—model                       处理业务的各种模型类
            ｜—Stu.php               数据表文件

      ｜—config                      配置项文件
            ｜—database.php          数据库连接、初始化数据配置文件
            ｜—view.php              文件后缀名配置文件

      ｜—helper.php                  助手函数文件

```

———————————————————————————————————————————————————————— ———————————————————————————————————————————————————————— 单一入口-》框架核心core控制器类-》前台控制器类-》框架核心view视图模板类-》前台视图模板文件 ———————————————————————————————————————————————————————— ————————————————————————————————————————————————————————

后台操作流程：
=======

[](#后台操作流程)

1. ```
         创建班级数据库frame

    ```
2. ```
         后台管理员表

    ```

create table admin( a\_id int primary key auto\_increment, a\_name char(16) unique not null default '', a\_psw varchar(100) not null default'' ); 3. 班级表 create table grade( g\_id int primary key auto\_increment, g\_name char(16) unique not null default '' );

4. ```
         学生表

    ```

create table student( s\_id int primary key auto\_increment, s\_name char(16) unique not null default '', s\_sex enum('男','女') not null default '男', s\_age tinyint(5) unsigned not null default 0, g\_id int unsigned not null default 1 );

```
//p (md5 ('admin888'));//加密后的密码 7fef6171469e80d32c0559f88b377245
//p (md5 ('qq123456'));//d0dcbf0d12a6b1e7fbfa2ce5848f3eff

```

名将共有27位，分为三档：

李元霸、宇文成都、程咬金为第一档;

罗成、单雄信、裴元庆、秦琼、李靖、虬髯客、红拂女、空空儿为第二档;

平阳公主、昆仑奴、柴绍、长孙无忌、魏征、徐茂公、王伯当、樊梨花、玄奘、步飞烟、何仙姑、霍小玉、窦线娘、荆十三娘、聂隐娘、红线为第三档。

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

2959d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e18ccfcc6f7d5dd2a1056b62edfd6b07abd869fc9e02ccae9333e24df914b5f?d=identicon)[tutenghaojiao](/maintainers/tutenghaojiao)

---

Top Contributors

[![tutenghaojiao](https://avatars.githubusercontent.com/u/36320211?v=4)](https://github.com/tutenghaojiao "tutenghaojiao (2 commits)")

### Embed Badge

![Health badge](/badges/ztj-frames/health.svg)

```
[![Health](https://phpackages.com/badges/ztj-frames/health.svg)](https://phpackages.com/packages/ztj-frames)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[getkirby/cms

The Kirby core

1.5k535.5k350](/packages/getkirby-cms)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)[bowphp/framework

The bow PHP Framework

6015.5k8](/packages/bowphp-framework)

PHPackages © 2026

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