Installing Symfony is pretty straightforward. We can use the following command to install Symfony on Linux or Mac OS X:
sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony sudo chmod a+x /usr/local/bin/symfony
We can use the following command to install Symfony on Windows:
c:\> php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
Once the command is executed, we can simply move the newly created symfony
file to our project directory and execute it further as symfony
, or php symfony
in Windows.
This should trigger an output shown as follows:
Preceding response indicates we have successfully setup Symfony and are now ready to start creating new projects.