PHPackages                             devster/userv - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. devster/userv

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

devster/userv
=============

Micro PHP library to build a socket server

36PHP

Since Jan 6Pushed 12y ago2 watchersCompare

[ Source](https://github.com/devster/userv)[ Packagist](https://packagist.org/packages/devster/userv)[ RSS](/packages/devster-userv/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Userv
=====

[](#userv)

[![Latest Stable Version](https://camo.githubusercontent.com/ba015a358e9e10c0675d346703ce7bb8fcf5aaed5bf481835462185952a3bd77/68747470733a2f2f706f7365722e707567782e6f72672f646576737465722f75736572762f762f737461626c652e706e67)](https://packagist.org/packages/devster/userv) [![Build Status](https://camo.githubusercontent.com/aeb8923078cf1bf3445d1dae531e2eeace5437ebcf4d4ae949505f1a22cf1ddd/68747470733a2f2f7472617669732d63692e6f72672f646576737465722f75736572762e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/devster/userv)

Micro PHP Socket server library

! work in progress! For now only tested on ubuntu, PHP 5.4 This lib should be used only in CLI, because of the use of pcntl\_fork

Quick usage
-----------

[](#quick-usage)

Create a php file and copy the code below.

```
require 'vendor/autoload.php';

use Userv\Server;
use Userv\Connection\TelnetConnection;

$serv = new Server('127.0.0.1', 23);
$serv
    ->setConnection(new TelnetConnection)
    ->setHandler(function($conn) {
        $conn->writeln('Hello, welcome on this telnet server, bouya!');
        $name = $conn->ask('What\'s your name? : ');
        $conn->writeln('Your name is '.$name);
    })
;

$serv->run();
```

Then run this file as CLI script: `sudo php myserver.php`.

Now open a new terminal and try `telnet localhost`.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8620f3809131894195e57dcaf70f3468f009b39dd4ebf220a964f580c38afc80?d=identicon)[devster](/maintainers/devster)

---

Top Contributors

[![devster](https://avatars.githubusercontent.com/u/1135083?v=4)](https://github.com/devster "devster (11 commits)")

### Embed Badge

![Health badge](/badges/devster-userv/health.svg)

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

###  Alternatives

[shomisha/stubless

A package for generating PHP files without stubs.

397.1k3](/packages/shomisha-stubless)

PHPackages © 2026

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