New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bref/laravel-websockets

WebSockets for Laravel on AWS Lambda with Bref and API Gateway
1,051 5
Install
composer require bref/laravel-websockets
Latest Version:0.2.0
PHP:^8.2
Laravel:12 · 13
License:MIT
Last Updated:Nov 6, 2026
Links: GitHub  ·  Packagist
Maintainer: mnapoli

Bref Laravel WebSockets

WebSockets for Laravel on AWS Lambda, with Bref and API Gateway.

This package adds an api-gateway broadcasting driver to Laravel, and speaks the protocol of Laravel Echo on API Gateway WebSockets.

Installation

composer require bref/laravel-websockets

Documentation

Read the documentation on bref.sh.

Contributing

composer install
composer test

To run the stores against real databases:

docker run -d --rm --name lw-mysql -p 33306:3306 -e MYSQL_DATABASE=test -e MYSQL_USER=test -e MYSQL_PASSWORD=test -e MYSQL_RANDOM_ROOT_PASSWORD=1 mysql:8.4
docker run -d --rm --name lw-pg -p 35432:5432 -e POSTGRES_DB=test -e POSTGRES_USER=test -e POSTGRES_PASSWORD=test postgres:17-alpine
docker run -d --rm --name lw-ddb -p 38000:8000 amazon/dynamodb-local:latest

TEST_DB_DRIVER=mysql TEST_DB_PORT=33306 composer test:integration -- --filter DatabaseStoreTest
TEST_DB_DRIVER=pgsql TEST_DB_PORT=35432 composer test:integration -- --filter DatabaseStoreTest
TEST_DYNAMODB_ENDPOINT=http://127.0.0.1:38000 composer test:integration -- --filter DynamoDbStoreTest

Related Packages

bref/laravel-bridge

An advanced Laravel integration for Bref, including Octane support.

5,444,750 343
georgeboot/laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets

55,704 105
aliasproject/laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets

4,400 1
agrodata/laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets

1,700
customergauge/bref

AWS Lambda with Bref Adapter for Laravel

50,000 1

Version History

Version Released PHP Laravel License
0.2.0 ^8.2 ^12.0 || ^13.0 MIT
0.1.0 ^8.2 ^12.0 || ^13.0 MIT