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(5mo ago)114Apache-2.0PHPPHP &gt;=8.3.0

Since Dec 17Pushed 5mo 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 1mo ago

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

33

—

LowBetter than 75% of packages

Maintenance73

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

152d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f5179a27e635eaf3daa6577342d26a8dde4cb13f871de96f718c558e5e02fca1?d=identicon)[wwwzne](/maintainers/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/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)
