Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 459 | All time: 6,094 This week: 673 |
Version | License | PHP version | Categories | |||
http-server 0.0.14 | The PHP License | 5.4 | HTTP, PHP 5 |
Description | Author | |||
This package implements a HTTP server that can take virtual host requests. Innovation Award
|
This is a http server for PHP completely written in PHP - HttpServer.
> Why do you do this? > - Because I can.
All configuration in file httpserver.configuration. It has blocks and directives inside blocks. For example, this is default configuration:
global:
listen 80
wapcode.ru:
document_root C:\Users\User\Documents;
match *.(png|jpe?g|gif):
cache 30d;
replace (.+) /index.php?$1 not_exist;
default:
document_root C:\Users\User\Documents;
compress gzip,deflate;
global.conf:
document_root C:\Users\User\global.conf;
Some special host names:
Inside server configuration following directives available.
listen [port].
> Sets server port to listen on.
Inside a block following directives available.
Files (11) |
File | Role | Description | ||
---|---|---|---|---|
bin (1 file) | ||||
src (7 files) | ||||
composer.json | Data | Auxiliary data | ||
httpserver.configuration | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (11) | / | src |
File | Role | Description |
---|---|---|
ConfigurationReader.php | Class | Class source |
HttpException.php | Class | Class source |
HttpServer.php | Class | Class source |
MimeTypeResolver.php | Class | Class source |
SocketReader.php | Class | Class source |
SocketWriter.php | Class | Class source |
WebServer.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.