Hawk is a small, embeddable, non-blocking, event based http server written entirely in PHP.
#!/usr/bin/env php
<?php
require_once __DIR__ . '/lib/SplClassLoader.php';
$loader = new SplClassLoader('Hawk', __DIR__ . '/src');
$loader->register();
$hawk = new \Hawk\Http\Server();
$hawk->registerApplication(new \My\Application());
$hawk->run();
- PHP 5.3
- Libevent >= 2.0.13