Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View composer.json
1 2 3 4 5 6 7
{
"require": {
"illuminate/database": "4.*",
"klein/klein": "2.*"
},
"minimum-stability": "stable"
}
View composer.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?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.