3 Star 15 Fork 2

宇润 / imi-demo

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

imi-demo

介绍

IMI 框架的 Demo

git 拉取下来后执行composer update

Http Demo

运行服务HttpDemo/bin/imi server/start

命令行工具HttpDemo/bin/imi 工具名称

命令行帮助HttpDemo/bin/imi -h

WebSocket Demo

运行服务WebSocketDemo/bin/imi server/start

imi-demo/WebSocketDemo/Http 目录是WebSocket演示页面的目录

imi-demo/WebSocketDemo/MainServer 目录是WebSocket服务的目录

默认通过http://127.0.0.1:8084访问页面,如要部署给外网访问,请修改imi-demo\WebSocketDemo\Http\Controller\Index.php文件中的wsUri

TCP Demo

运行服务TcpDemo/bin/imi server/start

imi-demo/TcpDemo/MainServer 目录是EOF自动分包实现的服务端Demo

imi-demo/TcpDemo/client-mainserver.php 文件是EOF自动分包实现的客户端Demo,在swoole环境下直接运行这个脚本

imi-demo/TcpDemo/Tcp2 目录是固定包头实现的Demo

imi-demo/TcpDemo/client-tcp2.php 文件是EOF自动分包实现的客户端Demo,在swoole环境下直接运行这个脚本

UDP Demo

运行服务UdpDemo/bin/imi server/start

D:\projects\imi-demo\UdpDemo\client.php 文件是UDP的客户端Demo,在swoole环境下直接运行这个脚本

代码仓库

码云:https://gitee.com/yurunsoft/IMI

Github:https://github.com/Yurunsoft/IMI

文档手册

https://doc.imiphp.com/

Repository Comments ( 0 )

Sign in to post a comment

About

已废弃,请移步: expand collapse
PHP
Apache-2.0
Cancel

Releases (3)

All

imi-demo

Contributors

All

Activities

Load More
can not load any more
PHP
1
https://git.oschina.net/yurunsoft/imi-demo.git
git@git.oschina.net:yurunsoft/imi-demo.git
yurunsoft
imi-demo
imi-demo
master

Search