Created
January 27, 2016 06:07
-
-
Save alber999/50e304d9fd2ae4e89ba0 to your computer and use it in GitHub Desktop.
Sample of 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 | |
/* | |
* Silex | |
* | |
* { | |
* "require": { | |
* "silex/silex": "~1.3" | |
* } | |
* } | |
*/ | |
require_once __DIR__.'/../vendor/autoload.php'; | |
$app = new Silex\Application(); | |
$app->get('/', function() use($app) { | |
return 'Hello world!'; | |
}); | |
$app->run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment