Download the PHP package oldshiji/siwo without Composer
On this page you can find all versions of the php package oldshiji/siwo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download oldshiji/siwo
More information about oldshiji/siwo
Files in oldshiji/siwo
Download oldshiji/siwo
More information about oldshiji/siwo
Files in oldshiji/siwo
Please rate this library. Is it a good library?
Informations about the package siwo
Siwo
基于swoole4.2.x版本封装的简易框架
框架实现了
- http控制器,tcp控制器,udp控制器,websocket控制器,socket控制器的封装,只需要定义好路由编写对应的控制器即可使用
- 简易封装了mysql协程客户端,简单实现了类似tp的DB用法
框架安装
1.composer create-project oldshiji/siwo siwo 目前沿无稳定版本,安装时请指定版本即可
框架和单片机通信实验
框架启动
- 启动
php siwod start
- 停止 php siwod stop
- 重启 php siwod restart
HTTP Controller
Tcp Controller
Udp Controller
websocket Controller
/**
* Created by PhpStorm.
* User: [email protected]
* Date: 2018/11/28
* Time: 15:11
*/
namespace App\Ws\Controllers;
use Siwo\Foundation\WebsocketController;
class UserController extends WebsocketController
{
public function index()
{
echo $this->frame->data;
$this->getServer()->push($this->fd,"hello,swoole");
}
}
PS:不在维护和管理了
All versions of siwo with dependencies
PHP Build Version
Package Version
Requires
oldshiji/siwo-framework Version
dev-master
The package oldshiji/siwo contains the following files
Loading the files please wait ....