Last active
December 15, 2015 22:09
-
-
Save nopolabs/5331455 to your computer and use it in GitHub Desktop.
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
composer.json | |
--- | |
{ | |
"require": { | |
"silex/silex": "1.0.*@dev" | |
}, | |
"autoload": { "psr-0": { "App": "./app" } } | |
} | |
web/index.php | |
--- | |
<?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->run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment