Last active
August 29, 2015 14:04
-
-
Save t-cyrill/a73e6cadb2ebe1576da4 to your computer and use it in GitHub Desktop.
Klein.php sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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