1Silex, a simple Web Framework
2=============================
3
4**WARNING** Silex 1.x is not maintained anymore. Please, upgrade to Silex 2.x.
5
6Silex is a PHP micro-framework to develop websites based on `Symfony
7components`_::
8
9    <?php
10
11    require_once __DIR__.'/../vendor/autoload.php';
12
13    $app = new Silex\Application();
14
15    $app->get('/hello/{name}', function ($name) use ($app) {
16      return 'Hello '.$app->escape($name);
17    });
18
19    $app->run();
20
21Silex works with PHP 5.3.9 or later.
22
23Installation
24------------
25
26The recommended way to install Silex is through `Composer`_:
27
28.. code-block:: bash
29
30    composer require silex/silex "~1.3"
31
32Alternatively, you can download the `silex.zip`_ file and extract it.
33
34More Information
35----------------
36
37Read the `documentation`_ for more information and `changelog
38<doc/changelog.rst>`_ for upgrading information.
39
40Tests
41-----
42
43To run the test suite, you need `Composer`_ and `PHPUnit`_:
44
45.. code-block:: bash
46
47    $ composer install
48    $ phpunit
49
50Community
51---------
52
53Check out #silex-php on irc.freenode.net.
54
55License
56-------
57
58Silex is licensed under the MIT license.
59
60.. _Symfony components: http://symfony.com
61.. _Composer:           http://getcomposer.org
62.. _PHPUnit:            https://phpunit.de
63.. _silex.zip:          http://silex.sensiolabs.org/download
64.. _documentation:      http://silex.sensiolabs.org/documentation
65