Skip to content

Instantly share code, notes, and snippets.

@boo1ean
Created October 28, 2013 21:21
Show Gist options
  • Select an option

  • Save boo1ean/7205000 to your computer and use it in GitHub Desktop.

Select an option

Save boo1ean/7205000 to your computer and use it in GitHub Desktop.
<?php require_once '../vendor/autoload.php';
use Rych\Random\Random;
use Slim\Slim;
$app = new Slim();
$app->get('/random', function() {
$random = new Random();
echo $random->getRandomString(50) . PHP_EOL;
});
$app->get('/hello/:name', function($name) {
echo 'Hello, ' . $name;
});
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment