phormio / cli-server-router
A simple router for the PHP CLI web server
1.0.0
2017-11-04 20:20 UTC
Requires
- php: >= 5.4.0
Requires (Dev)
- clue/socket-raw: ^1.2.0
- icecave/temptation: ^1.0.0
- phpunit/phpunit: ^5.7.23
This package is not auto-updated.
Last update: 2025-03-24 08:42:58 UTC
README
INTRODUCTION This package provides a basic router for the PHP CLI web server. You might use it as follows: php -S localhost:8000 src/router.php FEATURES * index.xhtml is a possible directory index. * More content types are available. /etc/mime.types is used, on systems that have it, to map extensions to content types. On systems that lack this file, an internal copy is used. OPERATING SYSTEMS The router should work on all OSes supported by PHP. However, at time of writing, the software has only been tested on Unix. INSTALLATION Install with Composer (the package name is phormio/cli-server-router) or just clone the repository.