2017 © Pedro Peláez
 

library microserver

image

timostamm/microserver

  • Thursday, July 19, 2018
  • by timostamm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 114 % Grown

The README.md

PHP Microserver

Build Status, (*1)

Minimal web server based on Symfony components., (*2)

It is very simple to use:, (*3)

$server = new Server();
$server->addController(SimpleController::class);
$server->serve()->send();

For an example how to use composer autoloading, see htdocs/index.php, (*4)

Features: * Support for symfony @Route annotations * Support for route parameters as controller arguments (scalar types) * Robust exception handling * JSON exception formatting (by using JsonServer) * Controller constructor arguments can be provided by calling addController() with a factory function as second argument * Nothing else, (*5)

The Versions