PHPackages                             w7/rangine-demo - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. w7/rangine-demo

ActiveProject[HTTP &amp; Networking](/categories/http)

w7/rangine-demo
===============

基于 Swoole 的常驻内存型 PHP 高性能框架

v1.0.8(4y ago)284999↓100%51Apache-2.0PHPCI failing

Since Apr 14Pushed 3y ago8 watchersCompare

[ Source](https://github.com/we7coreteam/w7-rangine-empty)[ Packagist](https://packagist.org/packages/w7/rangine-demo)[ Docs](https://www.rangine.com/)[ RSS](/packages/w7-rangine-demo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (5)Versions (13)Used By (0)

[![Php Version](https://camo.githubusercontent.com/315f5c30e505b9ccc4178451bbd34c2ba5d281d1fa3267304053ed19ab634125/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e312d627269676874677265656e2e737667)](https://secure.php.net/)[![Swoole Version](https://camo.githubusercontent.com/d694ccd6a051c135f0bc3dca525ddc475544dab5ce08f7b06506eb8be02fcacb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73776f6f6c652d2533453d342e332e302d627269676874677265656e2e737667)](https://github.com/swoole/swoole-src)[![Rangine Framework Version](https://camo.githubusercontent.com/2618edbb3e67fea7ba54ba40e8e396659bbcf8d7be2d763f4bb69a967888094f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72616e67696e652d2533453d302e302e312d627269676874677265656e2e737667)](https://github.com/we7coreteam/w7-rangine)[![Illuminate Database Version](https://camo.githubusercontent.com/4bea11dce5e9b935106aaeb4a45045bcbc57f77012273157766b90d4aa06c446/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f696c6c756d696e6174652f64617461626173652d2533453d352e362e302d627269676874677265656e2e737667)](https://github.com/illuminate/database)[![Rangine Doc](https://camo.githubusercontent.com/ea1431167b522b88916c717b0bfe6348328a8662a684bb128f0b0bd6d22a20d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d70617373696e672d677265656e2e7376673f6d61784167653d32353932303030)](https://wiki.w7.cc/chapter/1?id=1175#)

w7Rangine
=========

[](#w7rangine)

软擎是基于 Php 7.2+ 和 Swoole 4.4+ 的高性能、简单易用的开发框架。支持同时在 Swoole Server 和 php-fpm 两种模式下运行。内置了 Http (Swoole, Fpm)，Tcp，WebSocket，Process，Crontab服务。集成了大量成熟的组件，可以用于构建高性能的Web系统、API、中间件、基础服务等等。

代码
==

[](#代码)

Github :

Gitee : [https://gitee.com/we7coreteam/w7swoole\_empty.git](https://gitee.com/we7coreteam/w7swoole_empty.git)

安装
==

[](#安装)

composer install 前更改 composer 源，防止报错。

```
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

```

初始化骨架项目
-------

[](#初始化骨架项目)

```
composer create-project w7/rangine-demo ./project-name

```

初始化示例项目
-------

[](#初始化示例项目)

示例项目中包含文档上的一些演示代码，仅供了解使用。

```
git clone https://github.com/we7coreteam/w7-rangine-empty.git ./rangine-demo-test
cd rangine-demo-test
sudo composer install

```

文档
==

[](#文档)

功能
==

[](#功能)

- 基于 Swoole 扩展
- HTTP 服务器 (PSR-7消息)
- RPC 服务器 \*
- WebSocket 服务器
- MVC 分层设计
- 中间件 (PSR-15)
- URL路由 ([FastRoute](https://github.com/nikic/FastRoute))
- 协程数据库连接(Pdo, Mysql)
- 数据库连接池
- ORM 模型 ([Laravel Database](https://laravel-china.org/docs/laravel/5.5/eloquent/1332))
- DB查询门面 ([Laravel Database](https://laravel-china.org/docs/laravel/5.5/queries/1327))
- 日志系统 ([MonoLog](https://github.com/Seldaek/monolog))
- 协程、异步任务投递
- 类 Crontab 计划任务
- 异步任务
- 自定义事件侦听
- Provider 扩展机制
- Session 机制

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 79.3% 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 ~87 days

Recently: every ~139 days

Total

8

Last Release

1605d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67366373461d229a38d9b2f4b9f5fe6bd87a1c9bb74fedcf45d089f3ec90268d?d=identicon)[donknap@gmail.com](/maintainers/donknap@gmail.com)

---

Top Contributors

[![titrxw](https://avatars.githubusercontent.com/u/19631469?v=4)](https://github.com/titrxw "titrxw (311 commits)")[![donknap](https://avatars.githubusercontent.com/u/4213382?v=4)](https://github.com/donknap "donknap (72 commits)")[![we7team](https://avatars.githubusercontent.com/u/4837122?v=4)](https://github.com/we7team "we7team (9 commits)")

---

Tags

composercrontabfpmlaravel-databaselaravel-ormmqphpprocessswoolewe7websocketweengineswoolewe7

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/w7-rangine-demo/health.svg)

```
[![Health](https://phpackages.com/badges/w7-rangine-demo/health.svg)](https://phpackages.com/packages/w7-rangine-demo)
```

###  Alternatives

[hhxsv5/laravel-s

🚀 LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

3.9k676.0k10](/packages/hhxsv5-laravel-s)[swlib/saber

Swoole coroutine HTTP client

985145.0k27](/packages/swlib-saber)[hyperf/hyperf

A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

6.8k3.0k2](/packages/hyperf-hyperf)[simps/mqtt

MQTT Protocol Analysis and Coroutine Client for PHP

39351.6k9](/packages/simps-mqtt)[mezzio/mezzio-swoole

Swoole support for Mezzio

92238.9k3](/packages/mezzio-mezzio-swoole)[simple-swoole/simps

A simple, lightweight and high-performance PHP coroutine framework.

4798.0k3](/packages/simple-swoole-simps)

PHPackages © 2026

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