Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example index file for v3 of the CodeWave framework.
<?php
require_once '../vendor/autoload.php';
$router = new \Phroute\Phroute\RouteCollector();
$router->get('/', function() {
echo 'Hello, world!';
});
$app = new \Wave\Framework\Application\Wave(function ($router) {
return new \Phroute\Phroute\Dispatcher($router->getData());
});
$app->setRouter($router);
$app->run(\Phly\Http\ServerRequestFactory::fromGlobals());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.