PHPackages                             kovey/network - 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. [Framework](/categories/framework)
4. /
5. kovey/network

ActiveLibrary[Framework](/categories/framework)

kovey/network
=============

Network Of The Kovey Framework

v1.0.3(3y ago)0261Apache-2.0PHPPHP ^8.0

Since Mar 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kovey/network)[ Packagist](https://packagist.org/packages/kovey/network)[ RSS](/packages/kovey-network/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (1)

Socket And Websocket With PHP
-----------------------------

[](#socket-and-websocket-with-php)

Description
-----------

[](#description)

### Library

[](#library)

### Usage:

[](#usage)

```
- composer require kovey/network

```

### Examples

[](#examples)

```
    use Kovey\Network\Server;
    use Kovey\Network\Handler;
    use Kovey\Network\Event;

    class Connect implements Handler\ConnectInterface
    {
        public function connect(Event\Connect $event) : void
        {
            echo sprintf('new connection, fd[%d]', $event->getFd()) . PHP_EOL;
        }
    }

    class Close implements Handler\CloseInterface
    {
        public function close(Event\Close $event) : void
        {
            echo sprintf('connection close, fd[%d]', $event->getFd()) . PHP_EOL;
        }
    }

    class Receive implements Handler\ReceiveInterface
    {
        public function receive(Event\Receive $event) : void
        {
            echo sprintf('data: %s, fd[%d]', $event->getPacket(),  $event->getFd()) . PHP_EOL;
        }
    }

    $serv = Server::factory(Server::ADAPTER_SOCKET, array(
        'host' => '127.0.0.1',
        'port' => 9911,
        'pid_file' => '/path/to/run/pid.pid',
        'worker_num' => 4,
        'max_co' => 30000,
        'name' => 'server',
        'run_docker' => 'Off',
        'logger_dir' => '/path/to/logs'
    ));

    $serv->setConnect(new Connect())
        ->setClose(new Close())
        ->setReceive(new Receive());

    $serv->start();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

Every ~24 days

Total

4

Last Release

1437d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cdce3b265e73dc44351b4571c22d469be207dcc675093faaa58ca963922762c?d=identicon)[kovey](/maintainers/kovey)

---

Top Contributors

[![kovey](https://avatars.githubusercontent.com/u/2876473?v=4)](https://github.com/kovey "kovey (2 commits)")

---

Tags

phpframeworkwebsocketSocketnetworkkovey

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kovey-network/health.svg)

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

###  Alternatives

[hprose/hprose

It is a modern, lightweight, cross-language, cross-platform, object-oriented, high performance, remote dynamic communication middleware. It is not only easy to use, but powerful. You just need a little time to learn, then you can use it to easily construct cross language cross platform distributed application system.

2.1k215.3k37](/packages/hprose-hprose)[sammaye/yii2-elephantio

A plugin for using Elephant IO with Yii2

118.4k](/packages/sammaye-yii2-elephantio)

PHPackages © 2026

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