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

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

sockeon/laravel
===============

Laravel integration for Sockeon WebSocket and HTTP server

05↑2900%PHP

Since Jul 1Pushed todayCompare

[ Source](https://github.com/sockeon/laravel)[ Packagist](https://packagist.org/packages/sockeon/laravel)[ RSS](/packages/sockeon-laravel/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Sockeon for Laravel
===================

[](#sockeon-for-laravel)

Laravel integration for [Sockeon](https://sockeon.github.io) — a real-time WebSocket and HTTP server for PHP.

This package wires Sockeon into Laravel's service container, config system, logging, and Artisan commands so you can run a Sockeon server alongside your Laravel app without a standalone `server.php` bootstrap.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel 11, 12, or 13
- [sockeon/sockeon](https://github.com/sockeon/sockeon) ^3.0
- ext-sockets, ext-openssl (required by Sockeon)
- ext-openswoole (optional, for `engine=swoole`)
- ext-redis (optional, for multi-node scaling)

Installation
------------

[](#installation)

```
composer require sockeon/laravel
```

Run the installer to publish config and scaffold directories:

```
php artisan sockeon:install
```

Or publish config only:

```
php artisan vendor:publish --tag=sockeon-config
```

Quick start
-----------

[](#quick-start)

1. Create a controller in `app/Sockeon/Controllers/`:

```
