Skip to content

Instantly share code, notes, and snippets.

@vijaycs85
Created May 21, 2014 08:39
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 vijaycs85/4e1a5fe5cacb13852b82 to your computer and use it in GitHub Desktop.
Save vijaycs85/4e1a5fe5cacb13852b82 to your computer and use it in GitHub Desktop.
<?php
require_once __DIR__ . '/../vendor/autoload.php';
$app = new Silex\Application();
$app->get('/hello/{name}', function($name) use($app) {
return 'Hello '.$app->escape($name);
});
$app->finish(function() {
sleep(20);
});
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment