Commit bae8c3c8 authored by Marijn Huizendveld's avatar Marijn Huizendveld

Added syntax highlighting to `README`

parent 81afa6bd
...@@ -4,15 +4,19 @@ Silex, a simple Web Framework ...@@ -4,15 +4,19 @@ Silex, a simple Web Framework
Silex is a simple web framework to develop simple websites based on Silex is a simple web framework to develop simple websites based on
[Symfony2][1] components: [Symfony2][1] components:
require_once __DIR__.'/silex.phar';
$app = new Silex\Application(); ```php
<?php
require_once __DIR__.'/silex.phar';
$app->get('/hello/{name}', function ($name) { $app = new Silex\Application();
$app->get('/hello/{name}', function ($name) {
return "Hello $name"; return "Hello $name";
}); });
$app->run(); $app->run();
```
Silex works with PHP 5.3.2 or later. Silex works with PHP 5.3.2 or later.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment