2017 © Pedro Peláez
 

library ratchet-stack

Ratchet Stack

image

gos/ratchet-stack

Ratchet Stack

  • Wednesday, May 2, 2018
  • by ProPheT777
  • Repository
  • 3 Watchers
  • 5 Stars
  • 200,237 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 22 % Grown

The README.md

NOTE - This repository is no longer maintained, (*1)

Ratchet Stack

Latest Stable Version Total Downloads License, (*2)

Builder for ratchet middlewares based on ComponentInterface., (*3)

Ratchet Stack Builder is a small library that helps you construct a nested ComponentInterface decorator tree. It models it as a stack of middlewares., (*4)

Inspired of StackPHP, (*5)

Installation

composer require gos/ratchet-stack

Example

use Gos\Component\RatchetStack\Builder;
use React\Socket\Server;
use React\EventLoop\Factory;

$stack = new Builder();
$loop = Factory::create();

$socket = new Server($loop);
$socket->listen($this->port, $this->host);

$stack
    ->push('Ratchet\Server\IoServer', $socket, $loop)
    ->push('Ratchet\Http\HttpServer')
    ->push('Ratchet\WebSocket\WsServer')
    ->push('Ratchet\Session\SessionProvider', $this->sessionHandler)
    ->push('Ratchet\Wamp\WampServer')
;

$wampApplication = new WampApplication(); //Instance of WampServerInterface

$app = $stack->resolve($wampApplication); //Give IoServer instance
$app->run();

The Versions

02/05 2018

dev-master

9999999-dev https://github.com/GeniusesOfSymfony/RatchetStack

Ratchet Stack

  Sources   Download

MIT

The Requires

 

by Johann Saunier

stack application ratchet

02/05 2018

v0.2.0

0.2.0.0 https://github.com/GeniusesOfSymfony/RatchetStack

Ratchet Stack

  Sources   Download

MIT

The Requires

 

by Johann Saunier

stack application ratchet

27/05 2015

v0.1.0

0.1.0.0 https://github.com/GeniusesOfSymfony/RatchetStack

Ratchet Stack

  Sources   Download

MIT

The Requires

 

by Johann Saunier

stack application ratchet