PHPackages                             naka1205/phpkoa - 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. naka1205/phpkoa

ActiveLibrary[Framework](/categories/framework)

naka1205/phpkoa
===============

php koa

v1.8(7y ago)562048[1 issues](https://github.com/naka1205/phpkoa/issues)MITPHPPHP &gt;=5.4

Since Dec 19Pushed 6y ago3 watchersCompare

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

READMEChangelogDependencies (2)Versions (10)Used By (0)

PHPKoa
======

[](#phpkoa)

[![Latest Stable Version](https://camo.githubusercontent.com/73d7a8633673bdccd3e4a6d9ade0b505690aae48b0f19467fd190113f5806fb1/68747470733a2f2f706f7365722e707567782e6f72672f6e616b61313230352f7068706b6f612f76657273696f6e)](https://packagist.org/packages/naka1205/phpkoa)[![Total Downloads](https://camo.githubusercontent.com/dcc251c96aa41bc82fd5c785416edd20ddf5ccbabccc12ce83c158c0a2d64d39/68747470733a2f2f706f7365722e707567782e6f72672f6e616b61313230352f7068706b6f612f646f776e6c6f616473)](https://packagist.org/packages/naka1205/phpkoa)[![License](https://camo.githubusercontent.com/9e971649036ab601e8d196b326602b3efdb29ee32b199f004d9faebc9100b3f3/68747470733a2f2f706f7365722e707567782e6f72672f6e616b61313230352f7068706b6f612f6c6963656e7365)](https://packagist.org/packages/naka1205/phpkoa)

PHP异步编程: 基于 `PHP` 实(chao)现(xi) `NODEJS` web框架 [KOA](https://github.com/koajs/koa)

说明
==

[](#说明)

偶然间在 `GITHUB` 上看到有赞官方仓库的 [手把手教你实现co与Koa](https://github.com/youzan/php-co-koa) 。由于此前用过 `KOA` ，对于 `KOA` 的洋葱模型叹为观止。不由得心血来潮的看完了整个文档，接着 `CTRL+C`、`CTRL+V` 让代码跑了起来。 文档中是基于 `swoole` 扩展进行开发，而 `swoole` 对 `WINDOWS` 并不友好，向来习惯在 `WINDOWS` 下开发的我一鼓作气，将[Workerman](https://github.com/walkor/Workerman) 改写并兼容了此项目。

体验
==

[](#体验)

1. [PHPKoa Demo](https://github.com/naka1205/phpkoa_demo) 是使用 `PHPKoa` 开发 `HTTP SERVER` 的一个简单示例！
2. [PHP Krpano](https://github.com/naka1205/phpkrpano) PHP 全景图片生成！
3. [PKBook](https://github.com/naka1205/pkbook) 静态博客发布程序！
4. [H5Make](https://github.com/naka1205/H5Make) H5编辑器！

建议
==

[](#建议)

欢迎各位大神提交[issues](https://github.com/naka1205/phpkoa/issues/1)

安装
==

[](#安装)

```
composer require naka1205/phpkoa

```

使用
==

[](#使用)

### Hello World

[](#hello-world)

```
