https://github.com/we7coreteam/w7-rangine-empty
软擎是基于 Php 7.2+ 和 Swoole 4.4+ 的高性能、简单易用的开发框架。支持同时在 Swoole Server 和 php-fpm 两种模式下运行。内置了 Http (Swoole, Fpm),Tcp,WebSocket,Process,Crontab服务。集成了大量成熟的组件,可以用于构建高性能的Web系统、API、中间件、基础服务等等。
https://github.com/we7coreteam/w7-rangine-empty
composer crontab fpm laravel-database laravel-orm mq php process swoole we7 websocket weengine
Last synced: 16 days ago
JSON representation
软擎是基于 Php 7.2+ 和 Swoole 4.4+ 的高性能、简单易用的开发框架。支持同时在 Swoole Server 和 php-fpm 两种模式下运行。内置了 Http (Swoole, Fpm),Tcp,WebSocket,Process,Crontab服务。集成了大量成熟的组件,可以用于构建高性能的Web系统、API、中间件、基础服务等等。
- Host: GitHub
- URL: https://github.com/we7coreteam/w7-rangine-empty
- Owner: we7coreteam
- License: apache-2.0
- Created: 2019-04-23T10:52:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-23T09:00:09.000Z (about 2 years ago)
- Last Synced: 2024-09-26T02:10:52.029Z (7 months ago)
- Topics: composer, crontab, fpm, laravel-database, laravel-orm, mq, php, process, swoole, we7, websocket, weengine
- Language: PHP
- Homepage: https://www.rangine.com/
- Size: 308 KB
- Stars: 282
- Watchers: 10
- Forks: 52
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://secure.php.net/)
[](https://github.com/swoole/swoole-src)
[](https://github.com/we7coreteam/w7-rangine)
[](https://github.com/illuminate/database)
[](https://wiki.w7.cc/chapter/1?id=1175#)
# w7Rangine软擎是基于 Php 7.2+ 和 Swoole 4.4+ 的高性能、简单易用的开发框架。支持同时在 Swoole Server 和 php-fpm 两种模式下运行。内置了 Http (Swoole, Fpm),Tcp,WebSocket,Process,Crontab服务。集成了大量成熟的组件,可以用于构建高性能的Web系统、API、中间件、基础服务等等。
# 代码
Github : https://github.com/we7coreteam/w7-rangine-empty.git
Gitee : 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
```# 文档
https://wiki.w7.cc/chapter/1?id=1175#
# 功能
- 基于 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 机制