Download the PHP package fastd/dobee without Composer
On this page you can find all versions of the php package fastd/dobee. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package dobee
DoBee Framework
DoBee 是基于 FastD 组件生态构建的高性能 PHP API 框架骨架,完全支持 Swoole 协程运行,提供简洁优雅的开发体验。
✨ 特性
- 🚀 高性能 - 基于 Swoole 协程,性能远超传统 PHP-FPM
- 📦 组件化 - 完全采用 FastD 8.0 组件,松耦合设计
- 🎯 PSR 标准 - 遵循 PSR-7/11/15/17/18 标准
- 🔧 简洁配置 - 清晰的配置文件结构,易于理解和扩展
- 🌐 HTTP 服务 - 支持 Swoole HTTP 服务器和传统 FastCGI
- 💾 缓存支持 - 集成文件系统、Redis 等多种缓存后端
- 🗄️ 数据库 - 基于 Medoo 的轻量级数据库操作,支持连接池
- 🎭 中间件 - PSR-15 中间件支持,灵活扩展
- 📡 事件驱动 - 完整的事件监听器机制
📋 环境要求
- PHP: >= 8.2
- Swoole: >= 4.5 (可选,用于协程模式)
- 扩展:
- ext-swoole (可选)
- ext-pdo
- ext-json
- ext-curl
📦 安装
方式一:使用 Composer 创建项目(推荐)
方式二:克隆仓库后安装
方式三:手动添加到现有项目
🚀 快速开始
1. 项目结构
2. 配置数据库
编辑 config/database.php:
3. 配置缓存
编辑 config/cache.php:
4. 定义路由
编辑 config/route.php:
5. 创建 HTTP 处理器
创建 src/http/UserController.php:
🛠️ 运行方式
开发环境 (FastCGI)
生产环境 (Swoole)
📝 使用示例
HTTP 健康检查示例
所有示例统一输出服务状态:
查看 src/http/Welcome.php 了解完整实现。
使用缓存
使用数据库
命令行命令
创建 src/command/GreetCommand.php:
运行命令:
🧪 测试
📚 依赖组件
DoBee 基于 FastD 8.0 组件生态:
所有组件均遵循 PSR 标准,完全兼容 PHP 8.2+。
📖 文档
- FastD 框架: https://github.com/fastdlabs/fastd
- 组件文档: 各组件仓库 README
- Swoole 文档: https://www.swoole.com/
🤝 贡献
欢迎提交 Issue 和 Pull Request!
📄 License
MIT License
All versions of dobee with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
ext-json Version *
ext-pdo Version *
fastd/cache Version ^8.0
fastd/container Version ^8.0
fastd/config Version ^8.0
fastd/middleware Version ^8.0
fastd/http Version ^8.0
fastd/routing Version ^8.0
fastd/medoodb Version ^8.0
fastd/swoole Version ^8.0
fastd/fastd Version ^8.0
ext-json Version *
ext-pdo Version *
fastd/cache Version ^8.0
fastd/container Version ^8.0
fastd/config Version ^8.0
fastd/middleware Version ^8.0
fastd/http Version ^8.0
fastd/routing Version ^8.0
fastd/medoodb Version ^8.0
fastd/swoole Version ^8.0
fastd/fastd Version ^8.0
The package fastd/dobee contains the following files
Loading the files please wait ...