PHPackages                             lamoimage/larasocket - 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. lamoimage/larasocket

ActiveLibrary

lamoimage/larasocket
====================

a web socket server build with laravel and swoole

0.1(9y ago)486MITPHPPHP &gt;=5.4.0

Since Sep 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lamoimage/larasocket)[ Packagist](https://packagist.org/packages/lamoimage/larasocket)[ RSS](/packages/lamoimage-larasocket/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Larasocket - a web socket server build with laravel and swoole
==============================================================

[](#larasocket---a-web-socket-server-build-with-laravel-and-swoole)

\##Screenshot [![enter image description here](https://github.com/lamoimage/larasocket/raw/master/src/screenShots/larasocket.png)](https://github.com/lamoimage/larasocket/blob/master/src/screenShots/larasocket.png)

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

[](#installation)

Make sure you have the SWOOLE PHP package installed. You can find installation instructions at  and

run below command to install swool extension and add "extension=swoole.so" to php.ini.

```
pecl install swoole
```

Now pull in Larasocket package through Composer.

Run `composer require lamoimage/larasocket`

And then, if using Laravel 5, include the service provider within `config/app.php`.

```
'providers' => [
    Lamoimage\Larasocket\LarasocketServiceProvider::class,
];
```

Usage
-----

[](#usage)

Start the socket service with `php artisan socket:start` command

```
php artisan socket:start
```

Then access the route `/larasocket` in browser:

If you are using homestead, the url looks like

`http://homestead.app/larasocket`

You may also do socket:stop/socket:restart to shutdown or restart the socket service.

- `php artisan socket:stop`
- `php artisan socket:restart`

If you need to modify the socket server partials, you can run:

```
php artisan vendor:publish
```

The SWOOLE config file will now be located in the `config/larasocket.php`.

If you want to handle your own socket service logic, just implement the socket interface located at `vendor/lamoimage/larasocket/Socket.php`, then register in `app/Providers/AppServiceProvider.php`,

```
public function register()
{
	$this->app->bind('Lamoimage\Larasocket\Socket', 'App\Services\MySocket');
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4382f6b33551b44a2ccbc10cad5b7e6f070590837562ded97177fd9b2c1c67be?d=identicon)[lamoimage](/maintainers/lamoimage)

---

Top Contributors

[![lamoimage](https://avatars.githubusercontent.com/u/10320760?v=4)](https://github.com/lamoimage "lamoimage (5 commits)")

### Embed Badge

![Health badge](/badges/lamoimage-larasocket/health.svg)

```
[![Health](https://phpackages.com/badges/lamoimage-larasocket/health.svg)](https://phpackages.com/packages/lamoimage-larasocket)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
