PHPackages                             luoluolzb/php\_http - 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. luoluolzb/php\_http

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

luoluolzb/php\_http
===================

simple http server for study http protocol

1.2(6y ago)05MITPHP

Since Jul 19Pushed 6y agoCompare

[ Source](https://github.com/luoluolzb/php_http)[ Packagist](https://packagist.org/packages/luoluolzb/php_http)[ Docs](https://github.com/luoluolzb/php_http)[ RSS](/packages/luoluolzb-php-http/feed)WikiDiscussions master Synced today

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

php\_http
=========

[](#php_http)

纯PHP实现的简单的http服务器，仅用于学习http，不建议用于实际开发。

运行效果：

[![welcome](https://github.com/luoluolzb/php_http/raw/master/screenshots/welcome.png?raw=true)](https://github.com/luoluolzb/php_http/blob/master/screenshots/welcome.png?raw=true)

[![welcome](https://github.com/luoluolzb/php_http/raw/master/screenshots/404.png?raw=true)](https://github.com/luoluolzb/php_http/blob/master/screenshots/404.png?raw=true)

安装
--

[](#安装)

使用composer安装：

```
composer require luoluolzb/php_http

```

使用例子
----

[](#使用例子)

监听'/'请求并处理
----------

[](#监听请求并处理)

```
