PHPackages                             5046312/uphp - 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. 5046312/uphp

ActiveFramework[Framework](/categories/framework)

5046312/uphp
============

一个年轻的轻量级框架

19PHP

Since Sep 26Pushed 8y agoCompare

[ Source](https://github.com/5046312/uphp)[ Packagist](https://packagist.org/packages/5046312/uphp)[ RSS](/packages/5046312-uphp/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

uphp
====

[](#uphp)

一个年轻的轻量级框架

说明
--

[](#说明)

### 配置优先级

[](#配置优先级)

框架配置 &lt; 应用配置 &lt; 模块配置 &lt; 控制器配置 相同配置会由高到低进行覆盖

OpenWeChat
----------

[](#openwechat)

被动回复用户消息的数组模板：

文字 text:

```
$text = [
            "MsgType" => "text", // * 消息类型
            "Content" => "", // * 发送的文字内容（支持换行）
        ];

```

图片 image:

```
$image = [
            "MsgType" => "image", // * 消息类型
            "MediaId" => "", // * 通过素材管理中的接口上传多媒体文件，得到的id。
        ];

```

语音 voice:

```
$voice = [
            "MsgType" => "voice", // * 消息类型
            "MediaId" => "", // * 通过素材管理中的接口上传多媒体文件，得到的id
        ];

```

视频 video:

```
$video = [
            "MsgType" => "video", // * 消息类型
            "MediaId" => "", // * 通过素材管理中的接口上传多媒体文件，得到的id
            "Title" => "", // 视频消息的标题
            "Description" => "", // 视频消息的描述
        ];

```

音乐 music:

```
$music = [
            "MsgType" => "music", // * 消息类型
            "ThumbMediaId" => "", // * 缩略图的媒体id，通过素材管理中的接口上传多媒体文件，得到的id
            "Title" => "", // 音乐标题
            "Description" => "", // 音乐描述
            "MusicURL" => "", // 音乐链接
            "HQMusicUrl" => "", // 高质量音乐链接，WIFI环境优先使用该链接播放音乐
        ];

```

图文 news: // Todo: 可发送多条内容（尚未完成）

```
$news = [
            "MsgType" => "news", // * 消息类型
            "ArticleCount" => "", // * 图文消息个数，限制为8条以内
            "Articles" =>
            [
                [
                    "Title" => "", // 图文消息标题
                    "Description" => "", // 图文消息描述
                    "PicUrl" => "", // 图片链接，支持JPG、PNG格式，较好的效果为大图360*200，小图200*200
                    "Url" => "", // 点击图文消息跳转链接
                ],
                ...
            ]
        ];

```

DONE
----

[](#done)

- Language class(done)
- Config class(done)
- Composer support(done)
- Log generation(done)

TODO
----

[](#todo)

- Cookie class
- Session class
- Exception class(Waiting for fix)
- Route class(Restful)
- Cache class(File(done), Redis(done), Memcached)
- File class
- Image class(include Captcha)
- A easy achieving View class
- More database supporting(MongoDb...)
- Better building and debug tools
- Sql performance query and suggest to better
- Create Module class
- Swoole support
- WeChat support
- Alipay support

Version collect
---------------

[](#version-collect)

- v0.1 首次提交，本打算做一个精简的轻量框架
- v0.2 初代版本功能较少，调试起来可能有些麻烦
- v0.3 基本实现路由的访问来调用控制器方法
- v0.4 修复框架在二级目录时Uri判定错误的bug
- v0.5 Redis缓存类完成
- v0.6 准备重写Model与Driver
- v0.7 File日志可以记录每次Sql请求的信息（sql语句、执行时间）
- v0.8 File日志增加文件锁，防止并发
- v0.9 彻底解决了框架在多级目录下路由无法正确定位的BUG
- v0.10 日志写入放在了register\_shutdown\_function这个类似析构方法中
- v0.11 新增OpenWeChat类，实现Access\_Token的获取、保存、日志记录
- v0.12 修复Linux路径不兼容问题，修复框架在N层目录下访问错误的BUG
- v0.13 完成配置载入优先级，逐级覆盖
- v0.14 微信OpenWeChat中Message部分基本完成，符合操作逻辑

###  Health Score

20

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/314cc6c4df597902f7680b09fd827a99538eae9281159f7ee27f3a92724890c5?d=identicon)[5046312](/maintainers/5046312)

---

Top Contributors

[![gitlon-pro](https://avatars.githubusercontent.com/u/20859099?v=4)](https://github.com/gitlon-pro "gitlon-pro (172 commits)")

### Embed Badge

![Health badge](/badges/5046312-uphp/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k65.4M154](/packages/laravel-telescope)[spiral/roadrunner

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

8.4k11.6M74](/packages/spiral-roadrunner)[composer/installers

A multi-framework Composer library installer

1.4k133.5M5.5k](/packages/composer-installers)[laravel/dusk

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

1.9k35.9M222](/packages/laravel-dusk)[laravel/fortify

Backend controllers and scaffolding for Laravel authentication.

1.7k38.8M190](/packages/laravel-fortify)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.0M101](/packages/cakephp-chronos)

PHPackages © 2026

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