Download the PHP package mariuslundgard/php-server without Composer
On this page you can find all versions of the php package mariuslundgard/php-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mariuslundgard/php-server
More information about mariuslundgard/php-server
Files in mariuslundgard/php-server
Download mariuslundgard/php-server
More information about mariuslundgard/php-server
Files in mariuslundgard/php-server
Vendor mariuslundgard
Package php-server
Short Description A minimal routable HTTP middleware framework for PHP.
License MIT
Package php-server
Short Description A minimal routable HTTP middleware framework for PHP.
License MIT
Please rate this library. Is it a good library?
Informations about the package php-server
php-server
Features
- Routable middleware (application layers)
- Routable controller actions
Examples
This is the canonical Hello World example:
This example shows how to use middleware and map controllers:
class FrontController extends Server\Controller
{
public function index()
{
return 'Hello, world!';
}
}
$app = new Server\Module();
$app->employ([
'class' => 'HeaderFilter',
]);
$app->map([
'controller' => 'FrontController',
]);
$app->call()->send(); // outputs: <h1>Hello, world!</h1>
All versions of php-server with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.13
mariuslundgard/php-util Version dev-develop
mariuslundgard/php-core Version dev-develop
mariuslundgard/php-event Version dev-develop
mariuslundgard/php-socket Version dev-develop
mariuslundgard/php-debug Version dev-develop
mariuslundgard/php-util Version dev-develop
mariuslundgard/php-core Version dev-develop
mariuslundgard/php-event Version dev-develop
mariuslundgard/php-socket Version dev-develop
mariuslundgard/php-debug Version dev-develop
The package mariuslundgard/php-server contains the following files
Loading the files please wait ....