orangeman/im_swoole

There is no license information available for the latest version (1.0) of this package.

1.0 2019-04-19 14:17 UTC

This package is not auto-updated.

Last update: 2024-10-02 09:24:04 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

  1. xxxx
  2. xxxx
  3. xxxx

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Gitee Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Gitee blog blog.gitee.com
  3. Explore open source project https://gitee.com/explore
  4. The most valuable open source project GVP
  5. The manual of Gitee https://gitee.com/help
  6. The most popular members https://gitee.com/gitee-stars/