Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Socketio Laravel Package

sfcod/socketio

Socket.IO integration for Laravel applications that makes adding real-time, bidirectional communication simple. Broadcast server events to connected clients, handle live updates over websockets, and build interactive features with a familiar, easy-to-use API.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Socketio
How do I install sfcod/socketio in a Laravel app?
Install it with composer require sfcod/socketio, then let Laravel package auto-discovery register the service provider. Publish any config with php artisan vendor:publish and run the package's console command to start the Socket.IO daemon or client as documented. Installation is small, but confirm whether the package provides a server daemon or a client before wiring it into your app.
Which Laravel and PHP versions does sfcod/socketio support?
The last release was December 2022 and the package has not tracked Laravel 10 or 11 or PHP 8.2 and 8.3. Plan on Laravel 8 or 9 with PHP 8.0 or 8.1 unless you are prepared to maintain a fork. Do not override Composer constraints to force it onto newer Laravel versions, because that tends to produce subtle runtime failures.
Is sfcod/socketio a Socket.IO server or a client for Laravel?
The package is a Laravel wrapper around a PHP Socket.IO implementation and may boot a long-running PHP websocket daemon, emit events into an existing Socket.IO server, or both. Read the service provider and artisan command to confirm which role it plays in your setup. This matters because a client library is easily replaced, while a server daemon becomes infrastructure you must operate.
How does authentication work with sfcod/socketio websocket connections?
Websocket upgrades bypass normal HTTP middleware, so authentication must happen during the Socket.IO handshake. Check whether the package exposes a handshake hook that can validate Laravel guards and session state, and add origin and CORS checks at the proxy or handshake layer. If no hook exists, you will be reimplementing authorization outside Laravel's protections.
Can sfcod/socketio scale across multiple servers with Redis?
The evaluation found no clear evidence of a Redis adapter or multi-node fan-out, so assume single-process operation until you verify otherwise. Horizontal scale-out requires a pub/sub adapter so connected clients on different nodes receive the same broadcasts. If you need managed scaling, put the package behind an abstraction and use Laravel Reverb, Soketi, or Pusher instead.
What are the main risks of using sfcod/socketio in production?
The main risks are abandonment, protocol drift, a long transitive dependency chain, and a poorly covered authentication surface. Socket.IO client versions 3 and 4 use Engine.IO v4, while older servers speak Engine.IO v3, so a frontend upgrade can break the handshake silently at runtime. Run composer audit, pin the client version, and keep the package behind an interface with a named exit path.
Does sfcod/socketio support Socket.IO v4 clients?
Only if the underlying PHP server implements Engine.IO v4, which the evaluation could not confirm. Socket.IO v3 and v4 clients will fail at handshake against an Engine.IO v3 server. Pin socket.io-client to the protocol version your server actually speaks and test the handshake before upgrading.
What are good alternatives to sfcod/socketio for Laravel real-time?
Laravel Reverb, Soketi, Pusher, and Centrifugo are stronger choices for production real-time in Laravel. They offer maintained releases, managed or documented scaling, and clearer operational models. Define an internal RealtimeBroadcaster interface so any of these can replace sfcod/socketio without touching domain code.
How do I test a Laravel app that uses sfcod/socketio?
Start with a short sandbox spike that exercises the auth handshake, reconnect and backoff, multi-tab behavior, and proxy Upgrade headers. Add integration tests around your abstraction boundary rather than the package internals, and run composer audit to surface dependency risk. Also test the exact socket.io-client version you plan to ship.
Is sfcod/socketio still maintained and should I use it for new projects?
Treat it as a spike candidate, not a platform dependency. The December 2022 release, modest adoption, and single-maintainer profile mean no commercial backing or visible security process. Use it only behind an owned abstraction, or adopt an active fork if you must stay on the original API.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource