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).
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.0.*@dev"
}
}
And run Composer to install Silex and all its dependencies:
$ curl -s http://getcomposer.org/installer | php
$ composer.phar install
Then, create a bootstrap file as explained in the documentation.
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.