PHPackages                             yanue/stephp - 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. yanue/stephp

ActiveFramework[Framework](/categories/framework)

yanue/stephp
============

A Simple Tiny Easy PHP Framework

1.x-dev(12y ago)861MITPHPPHP &gt;= 5.3.2

Since Jul 25Pushed 10y ago3 watchersCompare

[ Source](https://github.com/yanue/stephp)[ Packagist](https://packagist.org/packages/yanue/stephp)[ Docs](http://yanue.github.io/stephp)[ RSS](/packages/yanue-stephp/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

stephp框架介绍
----------

[](#stephp框架介绍)

### 框架特点

[](#框架特点)

- 体积小，简单易用
- 基于namespace自动加载类库
- 低耦合，依赖注入，易扩展
- 强大url及路由处理能力
- 强大缓存处理方式
- 灵活的配置

### 目录结构

[](#目录结构)

```
project # 项目根目录
    ├─app   # 应用目录
    │  └─home           # 模块
    │     ├─controller # 控制器
    │     ├─model      # 模型
    │     └─view       # 试图
    │        ├─index    # 对应于IndexController->indexAction.
    │        └─layout.php # layout
    ├─assets        # 该目录可以自定义,默认前端采用seajs模块化开发结构
    │  ├─images     # 图片
    │  ├─js         # 脚本
    │  └─css        # 样式
    ├─cache         # 缓存目录及日志默认
    ├─config 配置文件
    │  ├─config.php   # 应用配置
    │  ├─database.php # 数据库配置
    │  └─router.php   # 路由配置
    ├─data      # 数据存放
    ├─library   # 系统类库
    │  ├─cache  # 缓存处理
    │  ├─core   # 系统初始化核心处理
    │  ├─di     # 依赖注入
    │  ├─db     # 数据库操作
    │  └─util   # 基础工具类
    ├─model     # 数据库模型
    ├─service   # 业务逻辑处理
    ├─.htaccess # 去除url上index.php
    ├─index.php # 入口文件
    └─README.md # 简单说明文档

```

### 命名规则

[](#命名规则)

- 遵循骆驼峰命名规则,类名需要首字母大写
- 控制器: 控制器名称+Controller.php 控制器类名和文件名相同 例: TestController.php,控制器类名:TestController
- 控制器方法: 方法名+action 例: testAction();
- 控制器文件位于当前模块下的controller目录
- 模型文件位于当前模块下的model目录
- 视图文件位于当前模块下的view目录

### 特别注意

[](#特别注意)

项目是基于namespace自动引入类库，因此类名所在目录命名必须为小写，文件名必须和类名一致，类文件必须加上命名空间（以项目跟目录为起始，可将目录首字母大写，如：Library/Core即library/core目录）

### 执行流程

[](#执行流程)

打开url-&gt;加载类库-&gt;解析url-&gt;检查是否经过路由-&gt;分陪mvc-&gt;执行控制器方法-&gt;数据处理-&gt;视图输出

### 已有案例

[](#已有案例)

- [方圆间](http://bzsns.cn/)
- [优递莱思集装箱监控调度平台](http://utlz.cn/)
- [创富港](http://webwework.com/)
- [黔东南州水利民生工程](http://www.ygsl.gov.cn/)
- [estt官网](http://estt.com.cn/)
- [捷明实业官网](http://www.fu5.com.cn/)
- [爱玩儿网](http://aiwaner.net/)
- [yanue.net](http://yanue.net)
- ...

查看文档

[查看文档](doc/index.md)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

4677d ago

### Community

Maintainers

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

---

Top Contributors

[![yanue](https://avatars.githubusercontent.com/u/1435250?v=4)](https://github.com/yanue "yanue (51 commits)")

---

Tags

stephpyanue

### Embed Badge

![Health badge](/badges/yanue-stephp/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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