2017 © Pedro Peláez
 

library php_socket_client

image

sky-l/php_socket_client

  • Wednesday, November 18, 2015
  • by sky-L
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php_socket_client

这个包的功能和workerman 的功能没有任何修改,只是做成了一个包。方便使用composer的项目使用, (*1)

使用

引入文件

require "vendor/autoload.php";

use skylee\gateway;

Gateway::$registerAddress = '127.0.0.1:1236';

例子

Gateway::sendToAll('{"type":"broadcast","content":"hello all"}');

Gateway::sendToClient($client_id,'{"type":"say","content":"hello"}');

Gateway::isOnline($client_id);

The Versions

18/11 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >5.3.0

 

by skylee

13/11 2015

1.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >5.3.0

 

by skylee