Download the PHP package ohhink/swoft-im without Composer
On this page you can find all versions of the php package ohhink/swoft-im. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package swoft-im
基于Swoft构建的Web聊天应用
简介
本项目是基于Swoft的练手项目,主要使用框架中的Http,WebSocket构建,用于新手熟悉Swoft框架。
环境要求
效果展示
很有意思的登录页
登陆首页
用户:程心,好友:三体
用户:三体,好友:程心
聊天页面
用户:程心,好友:三体
功能
- 用户登陆退出功能(todo 注册功能)
- 登陆认证中间件
- 同一用户,打开多个窗口,可以实现聊天记录同步接受,即支持多端登陆。
- 好友列表(todo 新增好友功能)
- WebSocket端已支持群聊功能(todo Http端需要做逻辑和界面处理)
安装
Composer 创建项目
将.env.example复制成.env并配置对应参数
运行数据库迁移命令
添加模拟数据,也可以自己创建,主要是user用户表和friend好友关系表
启动WebSocket和Http
使用
访问对应地址,这里假设ip为192.168.10.10
,端口为18308
,所以访问地址为
注意,要在本机实现两个客户端间的通讯,需要使用两个浏览器,或者开启一个Chrome的匿名模式
维护者
如何贡献
非常欢迎你的加入! 有任何问题或者想要贡献代码,请提交 issue
使用许可
MIT © OhhInk
All versions of swoft-im with dependencies
PHP Build Version
Package Version
Requires
php Version
>7.1
ext-pdo Version *
ext-redis Version *
ext-json Version *
ext-simplexml Version *
ext-libxml Version *
ext-mbstring Version *
swoft/db Version ~2.0.0
swoft/i18n Version ~2.0.0
swoft/view Version ~2.0.0
swoft/task Version ~2.0.0
swoft/redis Version ~2.0.0
swoft/framework Version ~2.0.0
swoft/http-server Version ~2.0.0
swoft/rpc-client Version ~2.0.0
swoft/rpc-server Version ~2.0.0
swoft/websocket-server Version ~2.0.0
swoft/tcp-server Version ~2.0.0
swoft/process Version ~2.0.0
swoft/apollo Version ~2.0.0
swoft/consul Version ~2.0.0
swoft/limiter Version ~2.0.0
swoft/breaker Version ~2.0.0
swoft/crontab Version ~2.0.0
swoft/session Version ~2.0.0
swoft/devtool Version ~2.0.0
ext-pdo Version *
ext-redis Version *
ext-json Version *
ext-simplexml Version *
ext-libxml Version *
ext-mbstring Version *
swoft/db Version ~2.0.0
swoft/i18n Version ~2.0.0
swoft/view Version ~2.0.0
swoft/task Version ~2.0.0
swoft/redis Version ~2.0.0
swoft/framework Version ~2.0.0
swoft/http-server Version ~2.0.0
swoft/rpc-client Version ~2.0.0
swoft/rpc-server Version ~2.0.0
swoft/websocket-server Version ~2.0.0
swoft/tcp-server Version ~2.0.0
swoft/process Version ~2.0.0
swoft/apollo Version ~2.0.0
swoft/consul Version ~2.0.0
swoft/limiter Version ~2.0.0
swoft/breaker Version ~2.0.0
swoft/crontab Version ~2.0.0
swoft/session Version ~2.0.0
swoft/devtool Version ~2.0.0
The package ohhink/swoft-im contains the following files
Loading the files please wait ....