orangeman / im_swoole
This package's canonical repository appears to be gone and the package has been frozen as a result.
Requires
- orangeman/redisdb: @dev
This package is not auto-updated.
Last update: 2025-04-02 11:41:50 UTC
README
Description
轻量级 mvc swoole 框架
Software Architecture
Software architecture description
Installation
1.克隆下来 2.composer update 3.cd 到swoolserver目录 4.php TestSwooleServer.php start|restart|stop|status 其中 start -d 以守护进程模式启动 5.可以针对不同的服务端封装不同的服务端入口,目前封装好了websocket服务端以及对应的控制器demo,以及redis服务端 ,redis服务端拿来解决普通业务项目的协程异步IO,使用swoole的go创建协程可以处理mysql、redis、curl、等异步IO 6.redis服务端和上面一样 php ./swooleserver/VipSwooleServer.php start 启动之后,客户端控制器中像这样调用 $redis = new \Redis; $redis->connect('127.0.0.1', 9501); $result = $redis->get("myqueue2");//get、set、hget,都可以和服务端对应起来即可 $result = json_decode($result, true); // myqueue2可以通过key来做文章让之定位到服务端的业务中去 var_dump($result);
Instructions
- xxxx
- xxxx
- xxxx
Contribution
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request
Gitee Feature
- You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
- Gitee blog blog.gitee.com
- Explore open source project https://gitee.com/explore
- The most valuable open source project GVP
- The manual of Gitee https://gitee.com/help
- The most popular members https://gitee.com/gitee-stars/