PHPackages                             spiral/roadrunner-broadcast - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. spiral/roadrunner-broadcast

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

spiral/roadrunner-broadcast
===========================

RoadRunner broadcast plugin bridge

v2.1.0(3y ago)1238.7k—0%1[1 issues](https://github.com/roadrunner-php/broadcast/issues)MITPHPPHP &gt;=7.4

Since Oct 17Pushed 3y ago8 watchersCompare

[ Source](https://github.com/roadrunner-php/broadcast)[ Packagist](https://packagist.org/packages/spiral/roadrunner-broadcast)[ RSS](/packages/spiral-roadrunner-broadcast/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (3)Used By (0)

RoadRunner Broadcast Plugin Bridge
==================================

[](#roadrunner-broadcast-plugin-bridge)

[![Latest Stable Version](https://camo.githubusercontent.com/dfaf9ffd9cc3c2522933b09eca077e81c2b59a4f675e33868f40df718d09334a/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f726f616472756e6e65722d62726f6164636173742f76657273696f6e)](https://packagist.org/packages/spiral/roadrunner-broadcast)[![Build Status](https://github.com/spiral/roadrunner-broadcast/workflows/build/badge.svg)](https://github.com/spiral/roadrunner-broadcast/actions)[![Codecov](https://camo.githubusercontent.com/7bd00b815b656893077e1362ccdf24c8b5b577a2990621840ab9cffb0a733a5d/68747470733a2f2f636f6465636f762e696f2f67682f73706972616c2f726f616472756e6e65722d62726f6164636173742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/spiral/roadrunner-broadcast/)

This repository contains the codebase bridge for broadcast RoadRunner plugin.

Installation
------------

[](#installation)

To install application server and broadcast codebase

```
$ composer require spiral/roadrunner-broadcast
```

You can use the convenient installer to download the latest available compatible version of RoadRunner assembly:

```
$ composer require spiral/roadrunner-cli --dev
$ vendor/bin/rr get
```

Usage
-----

[](#usage)

For example, such a configuration would be quite feasible to run:

```
rpc:
  listen: tcp://127.0.0.1:6001

server:
  # Don't forget to create a "worker.php" file
  command: "php worker.php"
  relay: "pipes"

http:
  address: 127.0.0.1:80
  # Indicate that HTTP support ws protocol
  middleware: [ "websockets" ]

websockets:
    broker: default
    path: "/ws"

broadcast:
    default:
        driver: memory
        config: {}
```

> Read more about all available brokers on the [documentation](https://roadrunner.dev/docs) page.

After configuring and starting the RoadRunner server, the corresponding API will become available to you.

```
