andreibu/php_websocket_client

PHP WebSocket Client For Laravel.
44
Install
composer require andreibu/php_websocket_client
Latest Version:0.2
PHP:>=5.3.23
License:MIT
Last Updated:Mar 24, 2017
Links: GitHub  ·  Packagist
Maintainer: AndreiBu

PHP WebSocket Client

Installation

composer require andreibu/php_websocket_client

Laravel 5

Setup

Add ServiceProvider to the providers array in config/app.php.


   'providers' => [
    ...
	AndreiBu\php_websocket_client\WSServiceProvider::class,
	
	],
	
   'aliases' => [
    ...
    
	'PHP_WS' => AndreiBu\php_websocket_client\Facades\PHP_WS::class,
	],
	

Configuration

    host
    port
    path
    

Usage

send

use PHP_WS;
PHP_WS::send(json_encode(array('type'=>'send_message_to','id'=>'1000001','msg'=>'laravel msg ')));


Contribute

https://github.com/AndreiBu/php_websocket_client/pulls

Related Packages

imanghafoori/laravel-terminator

A minimal yet powerful package to give you opportunity to refactor your controll...

54,707 254
imanghafoori/eloquent-relativity

A way to truly decouple eloquent models.

25,134 148
railken/eloquent-relativity

A way to truely decouple eloquent models.

1,096 0
imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

26,934 216
vvmalko/subscriptions

Subscription handling package for laravel 5 applications

173 8

Version History

Version Released PHP License
0.2 >=5.3.23 MIT
0.1 >=5.3.23 MIT
0.0.1 >=5.3.23 MIT