Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample of Silex
<?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