Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

iqbalhasandev's avatar

Laravel Reverb: Pusher error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0"

Reverb Version

v1.0.0-beta4

Laravel Version

v11.0.7

PHP Version

8.2.16

Description

I have Laravel reverb served in a subdomain on my server. Now I have connected to that subdomain from local with laravel-echo and there is no problem in eco connection.

But when I try to fire an event from the back-end I keep getting this error "Pusher error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0" ". But I can't understand why it is showing.

  • my reveb connection .env
REVERB_APP_ID=1752358
REVERB_APP_KEY=1ef29205703a9bf43755
REVERB_APP_SECRET=61ef2ad91cacaec2209d
REVERB_HOST="socket.iqbalhasan.dev"
REVERB_PORT=443
REVERB_SCHEME=http

But when I am locally using an application as a socket only and firing events from another application then everything is working fine only when I deploy reverb on the server there is a problem.

My concept is that there will be a reverb server in a subdomain and everyone will connect to that reverb server subdomain from another domain.

0 likes
14 replies
gych's avatar

The PHP version is lower than version 8.2 and your composer dependencies expect a php version equal or higher than 8.2

Use php -v in the terminal to see which version is currently installed and upgrade it if its lower than version 8.2

gych's avatar

@iqbalhasandev After changing the php version did you confirm that it was successfully updated by checking with php -v

Snapey's avatar

if composer says your php version is wrong, you better beleive it

iqbalhasandev's avatar

@Snapey How can I believe bro , My application is running and my socket connection is working but event says Composer dependencies require a PHP version ">= 8.2.0" ;(

Snapey's avatar

@iqbalhasandev so this error is related to the php version on your app server not your reverb install, and in the web server, not the command line

edit:nah forget that

1 like
iqbalhasandev's avatar
iqbalhasandev
OP
Best Answer
Level 1

@Snapey After changing Litespeed

Server Configuration > External App>Command

lsphp74/bin/lsphp

# To 

lsphp83/bin/lsphp

It's works for me .. Thanks for your help

Snapey's avatar

when you setup your reverb server did you tell composer to ignore platform dependencies?

if you run php artisan on the reverb server do you get the same error?

1 like
iqbalhasandev's avatar

Setting Up Subdomain for Reverb Server

To integrate Reverb with your Laravel application, follow these steps:

Create a Subdomain: Begin by creating a subdomain for your Reverb server. This can typically be done through your domain registrar or hosting provider's control panel. Let's say your subdomain is reverb.example.com.

Configure Proxy Settings: Set up your web server to proxy requests from your subdomain to the Reverb server's IP and port. Assuming the Reverb server's default IP is 0.0.0.0 and port is 8080, configure the proxy settings to forward requests from reverb.example.com to 0.0.0.0:8080.

Configure Laravel Echo: Update your Laravel Echo configuration to use the newly created subdomain reverb.example.com and the default HTTP port 80. This ensures that Laravel Echo can communicate with your Reverb server through the designated subdomain.

VITE_REVERB_HOST='reverb.example.com'
VITE_REVERB_PORT=80
VITE_REVERB_SCHEME=http

Adjust Reverb Configuration: In your Laravel application's configuration file (typically .env), specify the Reverb host and port. Update the REVERB_HOST to "localhost" and REVERB_PORT to 8080.

Your .env file should look like this:

Copy code
REVERB_HOST="localhost"
REVERB_PORT=8080

Test Connection: After making these configurations, test the connection by sending an event to Reverb. If everything is set up correctly, your Laravel application should be able to communicate with the Reverb server via the configured subdomain and port.

By following these steps, you should have successfully integrated Reverb with your Laravel application using a subdomain-based approach.

Please or to participate in this conversation.