PHPackages                             jaydenok/jayden-framework - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. jaydenok/jayden-framework

ActiveLibrary[Queues &amp; Workers](/categories/queues)

jaydenok/jayden-framework
=========================

my-framework

v2.0.0(3y ago)1131[2 PRs](https://github.com/JaydenOK/jayden-framework/pulls)MITPHP

Since Jan 27Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/JaydenOK/jayden-framework)[ Packagist](https://packagist.org/packages/jaydenok/jayden-framework)[ RSS](/packages/jaydenok-jayden-framework/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (5)Used By (0)

Jayden-Framework 支持多模块小型PHP框架
-----------------------------

[](#jayden-framework-支持多模块小型php框架)

PHP工具类库，Swoole常驻进程/异步任务/多消费队列进程/协程实例，rabbitmq使用，Auth2.0，RSA加密解密，JWT，validation参数过滤校验、DI模式等。
同时是一个支持多模块小型PHP框架，如api、apiv2为模块目录
（注意：一般目录下带有bootstrap.php文件的为独立于框架的用例模块）

### 版本

[](#版本)

```
php > 7.1
```

#### 架构及目录

[](#架构及目录)

项目jayden-framework即为app应用根目录，命名空间根目录app:

app架构遵循:应用-模块-控制器-方法结构

```
jayden-framework/api/UserController.php
jayden-framework(app) 应用目录
api   模块
command   命令行模块
api - UserController  控制器
api - UserController - add 添加方法
config 配置目录
core 系统核心目录
language  国际化语言目录
module   模块
utils 常用工具
third_party 第三方模块 (一般存放为直接下载的第三方项目)
vendor  第三方扩展目录 (通过composer下载的扩展)
docs  一些文档说明

```

#### 下载安装，支持composer

[](#下载安装支持composer)

```
composer require jaydenok/jayden-framework
```

#### 配置nginx

[](#配置nginx)

```
nginx站点配置如: jayden.cc.conf
```

#### 操作

[](#操作)

```
action方法内部获取请求数据，使用$this->body或注入run($body)获取
访问路由：

HTTP:
http://jayden.cc/api/test/testOne?param1=1&param2=2

命令行：
php index.php "command/Smc/test" "param1=1&param2=2"

```

#### 其它目录为单个模块库 （不需要可去除）

[](#其它目录为单个模块库-不需要可去除)

```
模块跟目录下一个固定PSR-4 自动加载类，使用时引入此文件，功能：将当前根目录注册为自动加载的命名空间 module
require '../bootstrap.php';

如PHP实现雪花算法模块,
测试生成分布式ID生成，访问: http://jayden.cc/php-snowflake/test.php

```

#### 存在的独立功能模块

[](#存在的独立功能模块)

```
PSR 注册命名空间   | autoloader/Autoloader.php
雪花算法 （分布式ID生成） | php-snowflake
DI容器  | di
php事件机制 | php-event
树的多级数组转换 （对象，节点方式）| tree
util工具类 XML，alias转盘抽奖算法， | util
php-di容器 | vendor
rakit 参数验证器 | rakit
php工具类库，mysql实用查询等
支持命名空间、多模块，控制器，方法小型PHP项目_
utils php常用工具集合 (一般一个工具存放在一个文件夹)
-- autoloader 自动加载命名空间
-- 数组与树型结构转换
-- pdo操作mysql数据库，支持ORM

```

#### 消息队列模块

[](#消息队列模块)

基于 MySQL 存储的轻量级 PHP 消息队列系统，位于 `system/` 目录。

**功能特性：**

- 支持多消费者进程并行消费
- 失败自动重试（指数退避策略）
- 消息锁机制，确保消息不被重复消费
- 配置热加载，修改队列配置后自动生效
- 支持 Windows &amp; Linux 环境
- 提供 Web 管理界面，可视化监控

**快速使用：**

```
// 发送消息
MqManager::set('queueName', ['userId' => 123, 'action' => 'register']);

// 启动消费者
// php index.php system/mq/daemon
```

**CLI 命令：**

```
php index.php system/mq/daemon    # 后台启动
php index.php system/mq/stop      # 停止
php index.php system/mq/restart   # 重启
php index.php system/mq/status    # 查看状态
```

详细使用说明参见：[消息队列使用说明文档](system/%E6%B6%88%E6%81%AF%E9%98%9F%E5%88%97%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E%E6%96%87%E6%A1%A3.md)

#### docs\_md 文档

[](#docs_md-文档)

```
window与linux远程文件同步.sh
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance49

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Every ~664 days

Total

2

Last Release

1320d ago

Major Versions

v1.0 → v2.0.02022-11-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23144742?v=4)[Jayden](/maintainers/JaydenOK)[@JaydenOK](https://github.com/JaydenOK)

---

Top Contributors

[![JaydenOK](https://avatars.githubusercontent.com/u/23144742?v=4)](https://github.com/JaydenOK "JaydenOK (218 commits)")

---

Tags

coroutinedemoexampleframeworkphpprocessrabbitmqswooleutils

### Embed Badge

![Health badge](/badges/jaydenok-jayden-framework/health.svg)

```
[![Health](https://phpackages.com/badges/jaydenok-jayden-framework/health.svg)](https://phpackages.com/packages/jaydenok-jayden-framework)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)

PHPackages © 2026

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