PHPackages                             yooer/easyswoole - 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. yooer/easyswoole

ActiveProject[Framework](/categories/framework)

yooer/easyswoole
================

An efficient swoole framework

3.7.9(3mo ago)06Apache-2.0PHPPHP &gt;=8.1

Since Mar 13Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/yooer/easyswoole)[ Packagist](https://packagist.org/packages/yooer/easyswoole)[ Docs](https://www.easyswoole.com/)[ RSS](/packages/yooer-easyswoole/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (45)Versions (4)Used By (0)

中文

[![](index.svg)](index.svg)

[![Latest Stable Version](https://camo.githubusercontent.com/b17f850df51375b509dd93c24274d0dfc02cd60e3301be0da84f78d0f7d9d8fd/68747470733a2f2f706f7365722e707567782e6f72672f656173792d73776f6f6c652d7068702f6561737973776f6f6c652d736b656c65746f6e2f762f737461626c65)](https://packagist.org/packages/easy-swoole-php/easyswoole-skeleton)[![Total Downloads](https://camo.githubusercontent.com/f22eb2b7b179b3af64308d69ef7fe6b33b3039d110ba3f6049b152572666e53a/68747470733a2f2f706f7365722e707567782e6f72672f656173792d73776f6f6c652d7068702f6561737973776f6f6c652d736b656c65746f6e2f646f776e6c6f616473)](https://packagist.org/packages/easy-swoole-php/easyswoole-skeleton)[![Latest Unstable Version](https://camo.githubusercontent.com/77a4ddd7be9a058b15e1e80fb624bd864eacc2e55af8b759b1c7ed8e0cc255ea/68747470733a2f2f706f7365722e707567782e6f72672f656173792d73776f6f6c652d7068702f6561737973776f6f6c652d736b656c65746f6e2f762f756e737461626c65)](https://packagist.org/packages/easy-swoole-php/easyswoole-skeleton)[![License](https://camo.githubusercontent.com/3d4bc42a62d51f56347a226eb6a7b6e2d5dad129116dbd88be68b182041f1bb6/68747470733a2f2f706f7365722e707567782e6f72672f656173792d73776f6f6c652d7068702f6561737973776f6f6c652d736b656c65746f6e2f6c6963656e7365)](https://packagist.org/packages/easy-swoole-php/easyswoole-skeleton)[![Monthly Downloads](https://camo.githubusercontent.com/3ce38049b1cf47158d78ebd08fcf80f391570dcdb75e84eb228a53e8ccd806aa/68747470733a2f2f706f7365722e707567782e6f72672f656173792d73776f6f6c652d7068702f6561737973776f6f6c652d736b656c65746f6e2f642f6d6f6e74686c79)](https://packagist.org/packages/easy-swoole-php/easyswoole-skeleton)

更新部分功能
======

[](#更新部分功能)

原版代码在这里，在 [XueSiLf/easyswoole-docker](https://github.com/easy-swoole-php/easyswoole-skeleton)作者比较忙，框架中有几个Bug，修改了几个文件

- EasySwooleLib\\Helper\\Functions.php 修改了 response 方法
- EasySwooleLib\\Response\\Response.php
- EasySwooleLib\\Request\\Request.php

其他文件没有修改(移除了一些无用的配置文件 比如docker的)!

最近项目重构与功能更新 (2026-03-13)
========================

[](#最近项目重构与功能更新-2026-03-13)

1. 架构调整与核心 Helper
-----------------

[](#1-架构调整与核心-helper)

- \*\*FastCache \*\*: 并迁移至 `App/Helper/FastCache.php`，作为全局共享内存缓存。
- **MongoDB 封装**: `MongoDbHelper` 与 `MongoDbPool` 迁移至 `App/Helper` 目录。
- **全局初始化**: `FastCache` 与 `Mongo` 服务已在 `GlobalEvent.php` 中配置为服务启动时自动初始化。
- **便捷函数**: 在 `App/Helper/Functions.php` 中新增了全局 Helper 函数：
    - `cache()`: 获取 `FastCache` 实例。
    - `mongo()`: 获取 `MongoDbHelper` 实例。

2. 新增工具类 (App/Utility)
----------------------

[](#2-新增工具类-apputility)

- **PlatesRender.php**: 集成 `league/plates` 模板引擎，支持灵活的视图渲染。
- **SendMail.php**: 基于 `PHPMailer` 的 SMTP 邮件发送工具，支持 HTML 格式。
- **Telegram.php**: 支持富文本、图片、媒体组及内联键盘的 Telegram Bot 推送工具。

3. 环境与配置
--------

[](#3-环境与配置)

- 新增配置项模板：
    - `Config/cache.php`: 缓存配置。
    - `Config/mongo.php`: MongoDB 连接池。
    - `Config/smtp.php`: 邮件服务器设置。
    - `Config/telegram.php`: 机器人 Token 与频道 ID。

4. 依赖更新
-------

[](#4-依赖更新)

- 执行了 `composer update`，新增了 `mongodb/mongodb`、`phpmailer/phpmailer`、`guzzlehttp/guzzle`、`league/plates` 等必要依赖。

骨架介绍
====

[](#骨架介绍)

这是一个使用 `EasySwoole` 框架搭建的骨架应用程序。这个骨架让开发者更容易使用 `EasySwoole` 框架。该应用程序旨在作为那些希望熟悉 `EasySwoole` 框架的人的起点。

安装要求
====

[](#安装要求)

`EasySwoole` 对系统环境有一些要求，只能在 `Linux` 和 `Mac` 环境下运行，但由于 `Docker` 虚拟化技术的发展，在 `Windows` 下 `Docker for Windows` 也可以作为运行环境。

各个版本的 `Dockerfile` 在 [XueSiLf/easyswoole-docker](https://github.com/XueSiLf/easyswoole-docker) 项目中已经给你准备好了，或者直接基于 `EasySwoole` 官方已经构建的 [easyswoolexuesi2021/easyswoole](https://hub.docker.com/repository/docker/easyswoolexuesi2021/easyswoole) 镜像来运行。

当你不想使用 `Docker` 作为运行环境时，你需要确保你的运行环境满足以下要求：

- PHP &gt;= 7.4
- Swoole PHP 扩展 &gt;= 4.4.23 且 Swoole PHP 扩展 &lt;= 4.4.26
- JSON PHP 扩展
- Pcntl PHP 扩展
- OpenSSL PHP 扩展（如果需要使用 `HTTPS`）

使用 Composer 安装
==============

[](#使用-composer-安装)

创建新 `EasySwoole` 项目的最简单方法是使用 [Composer](https://getcomposer.org/)。 如果您尚未安装，请按照[文档](https://getcomposer.org/download/)安装。

创建新的 `EasySwoole` 项目：

安装 3.7.x 版本
-----------

[](#安装-37x-版本)

```
composer create-project yooer/easyswoole project_name
```

安装完显示PHPUnit依赖有问题，要解决这个问题，您需要使用以下命令更新 PHPUnit 到修复版本：

```
composer update phpunit/phpunit --with-dependencies
```

建议
==

[](#建议)

- 建议您将骨架中部分文件中的项目名称重命名为您实际的项目名称，例如像 `composer.json` 和 `docker-compose.yml` 这样的文件。
- 查看 `App/HttpController/Index.php` 以查看 HTTP 入口点的示例。

**请记住**：您始终可以将此 `README.md` 文件的内容替换为适合您项目的内容描述。

联系我们
----

[](#联系我们)

问题：

加群请加微信：

[![](https://raw.githubusercontent.com/easy-swoole-php/easyswoole-skeleton/main/contactus.jpg)](https://raw.githubusercontent.com/easy-swoole-php/easyswoole-skeleton/main/contactus.jpg)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance80

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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 ~148 days

Total

3

Last Release

112d ago

### Community

Maintainers

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

---

Top Contributors

[![yooer](https://avatars.githubusercontent.com/u/49865607?v=4)](https://github.com/yooer "yooer (14 commits)")

---

Tags

phpasyncframeworkswooleeasyswoole

### Embed Badge

![Health badge](/badges/yooer-easyswoole/health.svg)

```
[![Health](https://phpackages.com/badges/yooer-easyswoole/health.svg)](https://phpackages.com/packages/yooer-easyswoole)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[easyswoole/easyswoole

An efficient swoole framework

4.8k190.3k55](/packages/easyswoole-easyswoole)[tempest/framework

The PHP framework that gets out of your way.

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

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[silverstripe/framework

The SilverStripe framework

7313.7M2.8k](/packages/silverstripe-framework)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)

PHPackages © 2026

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