Skip to content

Instantly share code, notes, and snippets.

@t-cyrill
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t-cyrill/a73e6cadb2ebe1576da4 to your computer and use it in GitHub Desktop.
Save t-cyrill/a73e6cadb2ebe1576da4 to your computer and use it in GitHub Desktop.
Klein.php sample
<?php
require __DIR__ . '/vendor/autoload.php';
$klein = new \Klein\Klein;
$klein->respond('GET', '/hello', function () {
return 'Hello World!';
});
$klein->dispatch();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment