Last active
August 29, 2015 14:11
-
-
Save jderusse/b217329b2c349c460b74 to your computer and use it in GitHub Desktop.
melody-silex
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 | |
<<<CONFIG | |
packages: | |
- silex/silex | |
php-options: | |
- "-S" | |
- "localhost:8000" | |
CONFIG; | |
$app = new Silex\Application(); | |
$app->get('/hello/{name}', function ($name) use ($app) { | |
return 'Hello '.$app->escape($name); | |
}); | |
$app->run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment