{"id":28169864,"url":"https://github.com/zavalit/corouser","last_synced_at":"2025-07-24T22:10:30.024Z","repository":{"id":27119381,"uuid":"30587575","full_name":"zavalit/corouser","owner":"zavalit","description":"Coroutine based server written in php","archived":false,"fork":false,"pushed_at":"2015-06-09T16:26:51.000Z","size":216,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-10T04:29:24.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zavalit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-10T10:43:44.000Z","updated_at":"2024-04-10T04:29:24.302Z","dependencies_parsed_at":"2022-08-25T01:41:04.893Z","dependency_job_id":null,"html_url":"https://github.com/zavalit/corouser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Fcorouser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Fcorouser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Fcorouser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Fcorouser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zavalit","download_url":"https://codeload.github.com/zavalit/corouser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374525,"owners_count":22060615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-15T16:18:52.557Z","updated_at":"2025-05-15T16:18:52.725Z","avatar_url":"https://github.com/zavalit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Corouser \n\n\n[![Build Status](https://travis-ci.org/zavalit/corouser.svg)](https://travis-ci.org/zavalit/corouser)\n\n## Coroutine based server written in php\n\n#### Preview\n\nInspired 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. \n\n\n#### Install it per Composer\n\n    composer require --dev zavalit/corouser:dev-master\n    \n##### and boot it\n\n    vendor/bin/server 8081 \n    \n  In example above **8081** is your port number and you are shurely free to choose any other port you wish\n  \n  \n#### Install it and boot it per Docker\n  It can be obviously the case that you don't have php version \u003e=5.5, in that case you can run it simply within docker container that has it.\n  \n    #get the code\n    git clone https://github.com/zavalit/corouser.git\n    \n    #go to the source code\n    cd corouser\n    \n    #and run a container\n    docker run -d -p 8081:8081 -v $PWD:/var/www  zavalit/corouser\n    \n#### And simply call it \nin a browser\n\n    http://localhost:8081\n     \nor benchmark it\n\n    ab -n 10000 -c 1000 http://0.0.0.0:8081/    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzavalit%2Fcorouser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzavalit%2Fcorouser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzavalit%2Fcorouser/lists"}