Download the PHP package intragile/laravel-reverb-kit without Composer

On this page you can find all versions of the php package intragile/laravel-reverb-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-reverb-kit

Laravel Reverb Kit

Developed and maintained by IntrAgile Kft.

Magyar leírás

Production toolkit for Laravel Reverb when you run it yourself, in Docker, Swarm or compose, behind your own reverse proxy:

If you deploy with Laravel Forge, Forge configures the proxy and the daemon for you; the doctor is still useful, the generators are not.

Requirements

Optional packages

Package What it enables
laravel/reverb (^1.7) The server-side rules (bind address, scaling, origins, payload limits, version) and the /up health check in the stack templates. An application that only publishes to a Reverb server deployed elsewhere does not need it; those rules are then skipped.
laravel/doctor (^0.1) The rules as php artisan doctor diagnostics.
pusher/pusher-php-server Required by the payload guard. Laravel's reverb broadcast driver uses it already.

Installation

The service provider is discovered automatically. To change the defaults, publish the configuration:

The three hosts

Most Reverb deployment failures come from mixing up three different hosts:

php artisan reverb:env prints this block with comments.

Doctor

Option Meaning
--json Print {findings: [{rule, status, message, hint}], worst}.
--strict Exit with 1 on warnings too.
--replicas=N How many Reverb replicas the deployment runs (default reverb-kit.topology.replicas).
--frontend-env=PATH The rendered frontend .env with the VITE_REVERB_* values (default reverb-kit.frontend_env, then the application's .env).
--skip=RULE Leave a rule out; repeatable. reverb-kit.doctor.skip does the same permanently.

Exit codes: 0 when nothing failed (warnings included, unless --strict), 1 on a failure, 2 on invalid options. When the default broadcasting connection is not the Reverb one (for example null in an application that does not broadcast), every rule is skipped and the exit code is 0.

As a deploy gate

Run it where the deployed configuration is available, for example as a step after the configuration is rendered and before traffic is switched:

Rules

Rule Checks Fails when
connection-credentials The broadcasting connection's key, secret and app_id match a Reverb app (only that they are set when Reverb is not installed). Skipped when laravel/reverb ships its own equivalent diagnostic. No matching app, or a mismatching secret or app id.
publish-target REVERB_HOST as the connection host. An internal service name (reverb) is fine. It is empty, 0.0.0.0 or ::. Warns on loopback in production.
scheme-port Scheme, useTLS and port of the connection and of every app. https without TLS or the other way round. Warns on 443 with http or 80 with https.
server-path A REVERB_SERVER_PATH prefix also reaches the connection's path option. Laravel 13's default connection has no path, so the prefix is silently lost. The value must be /prefix/: the Pusher SDK resolves the publish URL relative to it. The path is missing or differs.
server-bind REVERB_SERVER_HOST. The server cannot bind to a hostname. It is not an IP address.
scaling Replicas, REVERB_SCALING_ENABLED and REVERB_SCALING_CHANNEL. Reverb's scaling channel is a plain Redis pub/sub channel, shared by every deployment that uses the same name. More than one replica without scaling, or the default reverb channel with reverb-kit.topology.shared_redis. Warns on the default channel otherwise.
allowed-origins The apps' allowed_origins in production. config/reverb.php hard-codes ['*']. Never; warns on *.
payload-limit Reports max_request_size (the limit for server-side publishes) and each app's max_message_size. Never; warns when max_message_size is above max_request_size (the wrong variable was raised) or the guard allows more than the server accepts.
reverb-version The installed laravel/reverb against known advisories. Below 1.4.0 (CVE-2024-50347), or below 1.7.0 with scaling enabled (CVE-2026-23524). Warns below 1.7.0 otherwise.
frontend-env VITE_REVERB_* against the server side. ${VAR} and $VAR references are left to the build. The app key differs, or the host is a bind address, loopback in production, or a single-label internal name a browser cannot resolve.

The doctor is static: it reads configuration and makes no network calls. For a live WebSocket round trip, see intragile/laravel-observability, whose BroadcastCheck sends an event through Reverb and waits for it on a real connection.

laravel/doctor

With laravel/doctor installed, each rule is a diagnostic in the reverb group:

Generators

Every generator prints to stdout, or writes a file with --output= (an existing file is only overwritten with --force). Values come from your configuration; options override them.

Reverse proxy

The nginx location resolves the upstream through Docker's DNS (resolver 127.0.0.11) and a variable proxy_pass. With a literal host name nginx resolves it once, at startup, and keeps proxying to the old address after the orchestrator reschedules Reverb. The read timeout is twice the ping interval, so idle connections are not cut at nginx's 60 s default. The location matches /app/ only; --with-api also exposes the HTTP API under /apps/, which is only needed when the publisher runs outside the network.

Swarm and compose service

The service runs reverb:start from your application image, publishes no ports, checks health on Reverb's /up endpoint (falling back to a status code check for releases without it), and limits resources. With one replica it updates stop-first: two instances without scaling would split the clients between them. With more than one replica it turns scaling on, updates start-first and picks a scaling channel derived from the application name unless you pass --scaling-channel.

Env block

Custom templates

The stubs are copied to stubs/reverb-kit/; a published stub takes precedence over the package's own.

Payload size guard

Opt in with REVERB_KIT_GUARD_PAYLOADS=true. The guard wraps the reverb broadcast driver and measures every publish request exactly as the Pusher client would send it, before anything is sent. The size includes the channel list and, for private-encrypted-* channels, the ciphertext.

Setting Default Meaning
REVERB_KIT_ON_OVERSIZE report report: pass the PayloadTooLarge exception to report() and drop the broadcast. throw: throw it to the caller.
reverb-kit.publish.max_bytes null The limit. Null uses reverb.servers.reverb.max_request_size, or 10 000 when Reverb is not installed.
reverb-kit.publish.header_allowance 1024 Bytes reserved for the request line and headers, which count toward Reverb's limit.

A broadcast split into several requests (more than 100 channels, or encrypted channels) goes out to all of its channels or to none. Laravel's ShouldRescue still applies on top: the guard decides whether a payload is sent, ShouldRescue decides what happens to any other broadcasting error.

Channel isolation between deployments

Reverb isolates apps by their key, so deployments with their own REVERB_APP_* credentials do not see each other's channels. What they can share is the scaling channel: give every deployment its own REVERB_SCALING_CHANNEL, for example reverb_{app}_{environment}, and set REVERB_KIT_SHARED_REDIS=true where several deployments use one Redis so the doctor enforces it.

What happens when something is not installed

Missing Effect
laravel/reverb The server-side rules are skipped; the connection-side rules and the generators still work. The stack templates use the status code health check.
laravel/doctor No php artisan doctor diagnostics; reverb:doctor is unaffected.
Pusher client Enabling the payload guard throws a clear exception when broadcasting is first used. Nothing else is affected.

Configuration reference

See config/reverb-kit.php. Environment variables: REVERB_KIT_CONNECTION, REVERB_KIT_SERVER, REVERB_KIT_REPLICAS, REVERB_KIT_SHARED_REDIS, REVERB_KIT_FRONTEND_ENV, REVERB_KIT_GUARD_PAYLOADS, REVERB_KIT_ON_OVERSIZE, REVERB_KIT_UPSTREAM_HOST, REVERB_KIT_PUBLIC_HOST.

Testing

License

MIT. See LICENSE.


Developed and maintained by IntrAgile Kft.


All versions of laravel-reverb-kit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/console Version ^12.0|^13.0
illuminate/contracts Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package intragile/laravel-reverb-kit contains the following files

Loading the files please wait ...