Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 801 Bytes

README.md

File metadata and controls

44 lines (35 loc) · 801 Bytes

WebServer with PHP extension

  • httpparser: A PHP extension for the C http parser from Ruby's Mongrel web server.
  • swoole: PHP's asynchronous & concurrent & distributed networking framework.

Installation

swoole extension

pecl install swoole

http_parser extension

cd ext
phpize
./configure
make
sudo make install

Also add the following to your php.ini file:

extension=swoole.so
extension=httpparser.so

Run

php webserver.php

Credits

The http parser is from Mongrel http://mongrel.rubyforge.org by Zed Shaw. Mongrel Web Server (Mongrel) is copyrighted free software by Zed A. Shaw You can redistribute it and/or modify it under either the terms of the GPL.

The swoole is from http://pecl.php.net/package/swoole.