PHPackages                             linnbenson/todu-io - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. linnbenson/todu-io

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

linnbenson/todu-io
==================

PHP project development aids.

v1.2.6(3mo ago)14MITPHPPHP &gt;=7.3

Since Dec 9Pushed 3mo agoCompare

[ Source](https://github.com/LinnBenson/TODU-IO)[ Packagist](https://packagist.org/packages/linnbenson/todu-io)[ RSS](/packages/linnbenson-todu-io/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (16)Used By (0)

TODU.IO
=======

[](#toduio)

Website: [TODU-IO](https://todu.io)

> Lightweight and convenient PHP development framework.

---

### 安装

[](#安装)

```
composer require linnbenson/todu-io

// 强制更新: composer require linnbenson/todu-io:* --update-with-all-dependencies

```

### Shell 管理器

[](#shell-管理器)

```
管理器: chmod +x vendor/bin/todu && vendor/bin/todu
// 管理器构建完成可直接使用 `php cli` 命令运行

// 开始使用您的系统
1. 构建系统: vendor/bin/todu ==>
2. 刷新系统密钥: vendor/bin/todu ==>  ==>

// 预设常用指令
访问插件菜单: php cli plugin id:
安装插件: php cli plugin install:
插件配置: php cli plugin config:
执行插件命令: php cli plugin id: command:
启动所有服务器: php cli server start
停止所有服务器: php cli server stop
重启所有服务器: php cli server restart
查询所有服务器状态: php cli server status
维持所有服务器运行: php cli server maintain
脚本调试: php cli test

```

### 开发者文档

[](#开发者文档)

- [系统核心程序](https://github.com/LinnBenson/TODU-IO/tree/main/readme/Bootstrap.md)
- [用户请求工具](https://github.com/LinnBenson/TODU-IO/tree/main/readme/Request.md)
- [数据库操作](https://github.com/LinnBenson/TODU-IO/tree/main/readme/Database.md)
- [系统预设工具集](https://github.com/LinnBenson/TODU-IO/tree/main/readme/Tool.md)
- [插件支持及权限](https://github.com/LinnBenson/TODU-IO/tree/main/readme/Plugin.md)
- [系统服务器](https://github.com/LinnBenson/TODU-IO/tree/main/readme/Server.md)
- 致开发者
    - 如果您不想初始化核心驱动器，并且想要修改默认缓存日志之类的目录，请修改插件下的 system/config/todu.php 文件配置。
    - 创建一个接口时，接口如果包含 '\_\_' 的公开方法，将先执行该方法作为预处理器，预处理器返回值不为 null 时将终止后续方法执行并返回该值。如果在接口方法中返回了 false，则将直接返回 402 状态错误。
    - 如果接口为鉴权使用，如果包含 '\_\_' 的公开方法，将先执行该方法作为预处理器，预处理器返回值不为 null 时将终止后续方法执行并返回该值。如果在接口方法中返回了 false，则将直接返回 403 状态错误。
    - 路由加载优先级：用户路由 &gt; 系统路由 &gt; 插件路由

### 目录说明

[](#目录说明)

- bin|脚本目录
    - todu|系统管理脚本
- readme|开发者文档目录
    - ...
- src|公开引用目录
    - Exception|异常处理工具目录
        - ApiException.php|接口异常处理器
        - LogException.php|日志异常处理器
    - Handler|处理器目录
        - File.php|文件构造器
        - ME.php|Memcached 工具
        - RE.php|Redis 工具
        - Request.php|请求构造器
        - Router.php|路由构造器
        - Session.php|会话处理器
    - Helper|辅助工具目录
        - Common.php|通用辅助工具
        - Debug.php|调试助手
        - Shell.php|Shell 工具
        - TelegramBot.php|Telegram 机器人工具
        - Tool.php|系统工具集
        - Web.php|网络请求工具
    - Slot|类插槽目录
        - ModelBuild.php|模型构造器
        - ModelGlobal.php|模型全局作用域
        - RouterBuild.php|路由构造器
        - Validate.php|数据验证器
    - Bootstrap.php|核心驱动器
- support|系统构建目录
    - Controller|控制器目录
        - CliController.php|系统管理控制器
        - ServerController.php|服务器管理控制器
    - Helper|辅助工具目录
        - System.php|系统通用函数
    - Provider|服务提供者目录
        - Cli.php|CLI 命令提供者
        - Http.php|HTTP 请求提供者
        - Server.php|服务器提供者
    - Service|服务目录
        - PluginService.php|插件管理服务
        - SetupService.php|系统设置服务
    - Slot|类插槽目录
        - Plugin.php|插件基类
        - ServerGroup.php|服务器群组管理器
        - ServerTool.php|服务器工具集
- system|默认文件目录
    - config|系统配置目录
        - app.php|应用配置文件
        - database.php|数据库配置文件
        - plugin.php|插件更新配置
        - todu.php|系统核心配置文件
        - trust.php|信任列表配置文件
    - plugin|系统插件目录
        - Async|异步服务器插件
            - ...
        - Http|HTTP 服务器插件
            - ...
    - public|系统公共目录
        - assets|公共资源目录
            - ...
        - ...
    - resource|系统资源目录
        - lang|语言包目录
            - ...
        - template|模板文件目录
            - ...
        - view|视图文件目录
            - ...
    - router|系统路由目录
        - preset|预设路由目录
            - api.router.php|API 路由文件
            - app.router.php|应用路由文件
            - cli.router.php|CLI 路由文件
            - server\_Async.router.php|异步服务器路由文件
            - storage.router.php|存储器路由文件
            - view.router.php|视图路由文件
        - api.router.php|API 路由文件模版
        - blank.router.php|空白路由文件模版
        - view.router.php|视图路由文件模版
    - test|测试文件目录
        - ResetModel.php|模型重置测试文件

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance80

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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

Every ~3 days

Recently: every ~9 days

Total

15

Last Release

109d ago

### Community

Maintainers

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

---

Top Contributors

[![LinnBenson](https://avatars.githubusercontent.com/u/82112667?v=4)](https://github.com/LinnBenson "LinnBenson (1 commits)")

### Embed Badge

![Health badge](/badges/linnbenson-todu-io/health.svg)

```
[![Health](https://phpackages.com/badges/linnbenson-todu-io/health.svg)](https://phpackages.com/packages/linnbenson-todu-io)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M686](/packages/barryvdh-laravel-ide-helper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[illuminatech/balance

Provides support for Balance accounting system based on debit and credit principle

16137.4k](/packages/illuminatech-balance)[glhd/special

1929.4k](/packages/glhd-special)

PHPackages © 2026

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