Composer is the most flexible
way to get started with Silex. Create a directory to host your Silex
application and run the following command to create a
composer require silex/silex "~2.0"
Then, create a bootstrap file as explained in the documentation.
The easiest way to get started with Silex is to get an archive with everything included (it contains many optional dependencies):
You can also download a minimal setup with just the required dependencies:
These archives have been created using Composer to make them easily upgradable and to allow you to add or remove dependencies easily (see below).