Download the PHP package phpbg/mini-httpd without Composer
On this page you can find all versions of the php package phpbg/mini-httpd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package mini-httpd
PhpBg\MiniHttpd
This is a small http server framework built on top of React HTTP.
This framework is designed to build quick proofs of concepts.
It is not mature enough to run in production environments, because:
- it still contains synchronous blocking code
- it lacks a dependency (ioc) /configuration management
License
MIT
Features
Most of features are directly inherited from PHP React HTTP
- Middleware based
- see https://github.com/reactphp/http/wiki/Middleware for interesting middlewares you can add to this library
- Highly customizable
- PSR-7 messages
- Basic routing
- Basic PSR-3 logging
- Static files serving
- Let you focus on your service logic, not building a HTTP response (boooring)
- Just return
arrays
orobjects
in your route handlers, that's it:
- Just return
Install
Install with composer:
Examples
See example
folder
bare-minimal-json-server.php
shows the very minimal setup for json renderingfull-featured-server.php
shows a full setup with:- Static files serving
- Route redirection examples
- Automatic PHTML renderer features and suggested layout
- Accessing request params with proper validation / filtering
There is also a complete example that integrates with ratchet Websockets here: https://github.com/phpbg/mini-httpd-ratchet
TODO
- writing tests
All versions of mini-httpd with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
ext-zlib Version *
ext-json Version *
react/http Version ^1.0
zendframework/zend-validator Version ^2.10
zendframework/zend-filter Version ^2.8
psr/log Version ^1.0
psr/http-message Version ^1.0
react/promise Version ^2.7
guzzlehttp/psr7 Version ^1.4
ext-zlib Version *
ext-json Version *
react/http Version ^1.0
zendframework/zend-validator Version ^2.10
zendframework/zend-filter Version ^2.8
psr/log Version ^1.0
psr/http-message Version ^1.0
react/promise Version ^2.7
guzzlehttp/psr7 Version ^1.4
The package phpbg/mini-httpd contains the following files
Loading the files please wait ....