PHPackages                             wwwzne/wz-server - 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. wwwzne/wz-server

ActiveLibrary[Framework](/categories/framework)

wwwzne/wz-server
================

后端框架

v0.1(6mo ago)115Apache-2.0PHPPHP &gt;=8.3.0

Since Dec 17Pushed 6mo agoCompare

[ Source](https://github.com/wwwzne/wz-server)[ Packagist](https://packagist.org/packages/wwwzne/wz-server)[ RSS](/packages/wwwzne-wz-server/feed)WikiDiscussions main Synced today

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

wzServer
========

[](#wzserver)

wwwzne的轻量服务器框架

安装与引入
-----

[](#安装与引入)

```
composer require wwwzne/wz-server
```

主要模块
----

[](#主要模块)

1. 主要对象wzServer(路由管理已完成)
2. 工具函数集合utils
3. 图像处理对象(待做)
4. JSON转译器(待做)
5. 注解与文档注释(待做)
6. 文件上传(待做)
7. 实时通信(待做)
8. 日志管理(待做)

路由表设置
-----

[](#路由表设置)

```
wzServer::defind(["/" => fn() => "a"])
wzServer::define([ "GET/" => [$h, 'run'] ]);
wzServer::define([ "get/" => [$h, 'run'] ]);
wzServer::define([ "GET" => [$h, 'run'] ]);
wzServer::define([ "POST/" => [$h, 'run'] ]);
wzServer::define([ "post/" => [$h, 'run'] ]);
wzServer::define([ "post" => [$h, 'run'] ]);
wzServer::define([ "GET|POST/" => [$h, 'run'] ]);
wzServer::define([ "get|post/" => [$h, 'run'] ]);
wzServer::define([ "POST|GET/" => [$h, 'run'] ]);
wzServer::define([ "post|get/" => [$h, 'run'] ]);
wzServer::define([ "get/[0-9]" => [$h, 'run'] ]);
wzServer::define([ "get/@name/@id" => [$h, 'run'] ])
wzServer::define([ "get/{name}/{id}" => [$h, 'run'] ])
WzServer::run();
```

设置get请求
-------

[](#设置get请求)

```
// 函数回调
function test()
{
    return "holle world";
};
wzServer::get("/", "tests");
// 匿名函数回调
$test= function()
{
    return "holle world";
};
wzServer::get("/", $test);
// 类回调函数
wzServer::get("/", [
    new class{
        public function a(){}
    },'a'
]);
```

设置post请求
--------

[](#设置post请求)

```
// 函数回调
function test()
{
    return "holle world";
};
wzServer::post("/", "tests");
// 匿名函数回调
$test= function()
{
    return "holle world";
};
wzServer::post("/", $test);
// 类回调函数
wzServer::post("/", [
    new class{
        public function a(){}
    },'a'
]);
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance66

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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

199d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/151720962?v=4)[Shishuo Wang ](/maintainers/wwwzne)[@wwwzne](https://github.com/wwwzne)

---

Top Contributors

[![wwwzne](https://avatars.githubusercontent.com/u/151720962?v=4)](https://github.com/wwwzne "wwwzne (15 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/wwwzne-wz-server/health.svg)

```
[![Health](https://phpackages.com/badges/wwwzne-wz-server/health.svg)](https://phpackages.com/packages/wwwzne-wz-server)
```

###  Alternatives

[laravel/dusk

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

1.9k39.6M297](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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