PHPackages                             broadcastt/broadcastt-laravel-http - 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. broadcastt/broadcastt-laravel-http

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

broadcastt/broadcastt-laravel-http
==================================

Laravel library for Broadcastt HTTP API

v0.3.5(3y ago)0598↓50%MITPHPPHP ^8.0CI passing

Since Jul 24Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/broadcastt/broadcastt-laravel-http)[ Packagist](https://packagist.org/packages/broadcastt/broadcastt-laravel-http)[ Docs](https://broadcastt.xyz/)[ RSS](/packages/broadcastt-broadcastt-laravel-http/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (5)Dependencies (7)Versions (13)Used By (0)

Broadcastt
==========

[](#broadcastt)

[![](https://camo.githubusercontent.com/4f6052fc23afa4a4d53748e7ef45fdb8c047db4f460b429de9279f7b209e6874/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f62726f616463617374742f62726f616463617374742d6c61726176656c2d687474702f546573743f7374796c653d666c61742d737175617265)](https://github.com/broadcastt/broadcastt-laravel-http/actions?query=workflow%3ATest)[![](https://camo.githubusercontent.com/1d4be1b9020b1e02c5dae6dacdfc9a92cda709d172ddabdb3a20dc265dc57edb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62726f616463617374742f62726f616463617374742d6c61726176656c2d687474703f7374796c653d666c61742d737175617265)](https://github.com/broadcastt/broadcastt-laravel-http/blob/main/LICENSE)[![](https://camo.githubusercontent.com/27bf1c9c6c70999a9ca6570a6ce7fba0115320d0218a6869af48a9b467e4ef34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62726f616463617374742f62726f616463617374742d6c61726176656c2d687474703f7374796c653d666c61742d737175617265)](https://packagist.org/packages/broadcastt/broadcastt-laravel-http)

Realtime web applications are the future. [Broadcastt](https://broadcastt.xyz/) provides tools to help developers create realtime applications.

Laravel HTTP Library
--------------------

[](#laravel-http-library)

> Be aware that this library is still in beta and not reached the first MAJOR version.
>
> Semantic Versioning 2.0.0
>
> Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable.

This library is compatible with Laravel 5.5+

This is an HTTP library for Laravel. If you are looking for a client library or a different server library please check out our [list of libraries](https://broadcastt.xyz/docs/libraries).

For tutorials and more in-depth documentation, visit the [official site](https://broadcastt.xyz/).

Documentation
-------------

[](#documentation)

### First steps

[](#first-steps)

Require this package, with [Composer](https://getcomposer.org/)

```
composer require broadcastt/broadcastt-laravel-http

```

The Broadcastt [service provider](http://laravel.com/docs/provider) is registered automatically.

```
Broadcastt\Laravel\BroadcasttServiceProvider

```

If you want you can register the Broadcastt [facade](http://laravel.com/docs/facades).

```
'Broadcastt' => Broadcastt\Laravel\Facades\Broadcastt::class

```

### Configuration

[](#configuration)

To configure only the [Broadcasting](https://laravel.com/docs/broadcasting) driver you have to modify `config/broadcasting.php`. You have to have an item in the `connections` array with its driver set to `broadcastt`.

```
'broadcastt' => [
	'driver' => 'broadcastt',
	'id' => env('BROADCASTER_APP_ID'),
	'key' => env('BROADCASTER_APP_KEY'),
	'secret' => env('BROADCASTER_APP_SECRET'),
	'cluster' => env('BROADCASTER_APP_CLUSTER'),
],

```

The recommended way is to use environment variables or use `.env` to configure these data.

You can also use the `PUSHER_APP_KEY`, `PUSHER_APP_SECRET`, `PUSHER_APP_ID` and `PUSHER_APP_CLUSTER` environment variables respectively.

To configure other connection for the facade you should publish `config/broadcastt.php`.

```
php artisan vendor:publish --provider="Broadcastt\Laravel\BroadcasttServiceProvider"

```

In the published `config/broadcasting.php` file you can define many connections.

#### `id` (Integer)

[](#id-integer)

The id of the application

#### `key` (String)

[](#key-string)

The key of the application

#### `secret` (String)

[](#secret-string)

The secret of the application

#### `cluster` (String) Optional

[](#cluster-string-optional)

The cluster of the application

Default value: `eu`

### Additional options

[](#additional-options)

#### `useTLS` (String)

[](#usetls-string)

Short way to change `scheme` to `https` and `port` to `443`

#### `debug` (Boolean)

[](#debug-boolean)

Turns on debugging for all requests

Default value: `false`

#### `basePath` (String)

[](#basepath-string)

The base of the path what the request will call

Default value: `/apps/{AppId}`

#### `scheme` (String)

[](#scheme-string)

E.g. http or https

Default value: `http`

#### `host` (String)

[](#host-string)

The host e.g. cluster.broadcasttapp.com. No trailing forward slash

Default value: `eu.broadcasttapp.xyz` If the cluster is not set during initialization

#### `port` (String)

[](#port-string)

The http port

Default value: `80`

#### `timeout` (String)

[](#timeout-string)

The http timeout

Default value: `30`

### Usage of broadcaster

[](#usage-of-broadcaster)

`BroadcasttServiceProvider` registers a driver for Broadcasting, so in `config/broadcasting.php` you can use `broadcastt` driver for broadcasting.

For example you can set `BROADCAST_DRIVER` environment variable to `broadcastt`.

### Usage of facade

[](#usage-of-facade)

#### `client($connection = null)`

[](#clientconnection--null)

Returns a client instance

#### `connection($connection = null)`

[](#connectionconnection--null)

Alias for `client($connection = null)`

#### `trigger($channels, $name, $data, $socketId = null, $jsonEncoded = false)`

[](#triggerchannels-name-data-socketid--null-jsonencoded--false)

Trigger an event by providing event name and payload.

Optionally provide a socket ID to exclude a client (most likely the sender).

#### `triggerBatch($batch = [], $encoded = false)`

[](#triggerbatchbatch---encoded--false)

Trigger multiple events at the same time.

#### `get($path, $params = [])`

[](#getpath-params--)

GET arbitrary REST API resource using a synchronous http client.

All request signing is handled automatically.

Contributing
------------

[](#contributing)

Everyone is welcome who would help to make this library "Harder, Better, Faster, Stronger".

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance60

Regular maintenance activity

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~153 days

Recently: every ~215 days

Total

12

Last Release

1164d ago

PHP version history (6 changes)0.1.0PHP ^5.4 || ^7.0

0.2.0PHP ^7.1

0.2.1PHP ^7.2

v0.3.2PHP ^7.2|^8.0

v0.3.3PHP ^7.3|^8.0

v0.3.5PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3bd9e4491f20dd26347fd114f60fb7e5dd8578fb8e4099c8ed7617f6ecb7094?d=identicon)[nergal](/maintainers/nergal)

---

Top Contributors

[![nerg4l](https://avatars.githubusercontent.com/u/4079392?v=4)](https://github.com/nerg4l "nerg4l (45 commits)")

---

Tags

broadcasteventslaravelmessagingpublishpushreal-timerealtimeresttriggerlaravelrestpusheventsreal-timepublishmessagingrealtimetriggerBroadcastbroadcastt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/broadcastt-broadcastt-laravel-http/health.svg)

```
[![Health](https://phpackages.com/badges/broadcastt-broadcastt-laravel-http/health.svg)](https://phpackages.com/packages/broadcastt-broadcastt-laravel-http)
```

###  Alternatives

[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[pusher/pusher-http-laravel

\[DEPRECATED\] A Pusher bridge for Laravel

400509.0k3](/packages/pusher-pusher-http-laravel)[nuwber/rabbitevents

The Nuwber RabbitEvents package

120515.8k3](/packages/nuwber-rabbitevents)[zfr/zfr-pusher

PHP library for interacting with the Pusher REST API

2112.7k1](/packages/zfr-zfr-pusher)[vinelab/minion

A Simple WAMP (Web Application Messaging Protocol) server and command line tool

1276.4k](/packages/vinelab-minion)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
