a Sensio Labs Product

The PHP micro-framework
based on the Symfony2 Components

Download and Installation

Via an Archive

The easiest way to get started with Silex is to get an archive with everything included (it contains many optional dependencies):

Download Silex as a "fat" .zip or .tgz file.

You can also download a minimal setup with just the required dependencies:

Download Silex as a "slim" .zip or .tgz file.

These archives have been created using Composer to make them easily upgradable and to allow you to add or remove dependencies easily (see below).

Via Composer

Composer is the most flexible way to get started with Silex. Create a directory to host your Silex application and create a composer.json file inside:

{
    "require": {
        "silex/silex": "~1.2"
    }
}

And run Composer to install Silex and all its dependencies:

$ curl -sS https://getcomposer.org/installer | php
$ composer.phar install

Then, create a bootstrap file as explained in the documentation.

Via a PHAR - deprecated

You can also download Silex as a PHAR file. This method is deprecated as there are a lot of caveats and it also does not let you easily add other dependencies.

This website is powered by Silex and Twig. The Silex logo is © 2010,2011 Sensio Labs