Skip to content
No description, website, or topics provided.
PHP
Branch: master
Clone or download
Latest commit 8586411 Jul 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
workerman Add files via upload Jul 18, 2018
LICENSE Initial commit Jul 18, 2018
README.md Add files via upload Jul 18, 2018
request.php Add files via upload Jul 18, 2018
subscribe.php Add files via upload Jul 18, 2018

README.md

环境要求

(php>=5.3.3) (workerman框架 demo中带的仅供测试)

运行

下载该demo

1.订阅

<?php
require_once __DIR__ . '/subscribe.php';
subscribe(function($data) {
	var_dump($data);
});

在终端运行 php youFile.php

2. 请求

<?php
require_once __DIR__ . '/request.php';
request(function($data) {
	var_dump($data);
});

在终端运行 php youFile.php

注意

生产环境下推荐利用systemctl等工具进行部署,

反馈

china.hehanlin@gmail.com

You can’t perform that action at this time.