PHPackages                             zavalit/corouser - 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. zavalit/corouser

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

zavalit/corouser
================

Coroutine based server

3151PHP

Since Jun 9Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Corouser
========

[](#corouser)

[![Build Status](https://camo.githubusercontent.com/9e8b361f2849319a1ddd6fce24fe57c59f43fccfeb3496d916c8143ac39c463c/68747470733a2f2f7472617669732d63692e6f72672f7a6176616c69742f636f726f757365722e737667)](https://travis-ci.org/zavalit/corouser)

Coroutine based server written in php
-------------------------------------

[](#coroutine-based-server-written-in-php)

#### Preview

[](#preview)

Inspired by awesome [nikic aticle](https://nikic.github.io/2012/12/22/Cooperative-multitasking-using-coroutines-in-PHP.html), and is developed primaraly for the sake of learing a concept of coroutine in php, at this stage it is not for production at all.

#### Install it per Composer

[](#install-it-per-composer)

```
composer require --dev zavalit/corouser:dev-master

```

##### and boot it

[](#and-boot-it)

```
vendor/bin/server 8081

```

In example above **8081** is your port number and you are shurely free to choose any other port you wish

#### Install it and boot it per Docker

[](#install-it-and-boot-it-per-docker)

It can be obviously the case that you don't have php version &gt;=5.5, in that case you can run it simply within docker container that has it.

```
#get the code
git clone https://github.com/zavalit/corouser.git

#go to the source code
cd corouser

#and run a container
docker run -d -p 8081:8081 -v $PWD:/var/www  zavalit/corouser

```

#### And simply call it

[](#and-simply-call-it)

in a browser

```
http://localhost:8081

```

or benchmark it

```
ab -n 10000 -c 1000 http://0.0.0.0:8081/

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/7e019a2502a0587807795f25698b4a8b331f9f1910a2a3f2237dc3e7ce8af48a?d=identicon)[zavalit](/maintainers/zavalit)

### Embed Badge

![Health badge](/badges/zavalit-corouser/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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