Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
{
"require": {
"illuminate/database": "4.*",
"klein/klein": "2.*"
},
"minimum-stability": "stable"
}
<?php
require_once __DIR__ . '/vendor/autoload.php';
use \Illuminate\Database\Capsule\Manager as Capsule;
$database = array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => '',
'username' => '',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
);
$capsule = new Capsule;
$capsule->addConnection($database);
$capsule->setAsGlobal();
$capsule->bootEloquent();
$router = new Klein\Klein();
$router->respond('GET', '/', function ($request, $response, $service, $app) {
echo 'hello!';
});
$router->dispatch();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.