2017 © Pedro Peláez
 

library corouser

Coroutine based server

image

zavalit/corouser

Coroutine based server

  • Tuesday, June 9, 2015
  • by zavalit
  • Repository
  • 1 Watchers
  • 2 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Corouser

Build Status, (*1)

Coroutine based server written in php

Preview

Inspired by awesome nikic aticle, 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., (*2)

Install it per Composer

composer require --dev zavalit/corouser:dev-master
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, (*3)

Install it and boot it per Docker

It can be obviously the case that you don't have php version >=5.5, in that case you can run it simply within docker container that has it., (*4)

#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

in a browser, (*5)

http://localhost:8081

or benchmark it, (*6)

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

The Versions

09/06 2015

dev-master

9999999-dev

Coroutine based server

  Sources   Download

The Requires

  • php >=5.5

 

by Vsevolod Dolgopolov