Download Symfony

Step 1. Install Symfony CLI

The Symfony CLI is a developer tool to help you build, run, and manage your Symfony applications directly from your terminal. It's Open-Source, works on macOS, Windows, and Linux, and you only have to install it once in your system.

You can use the Symfony CLI to:

Choose one of the following installation methods:

Homebrew

$ brew install symfony-cli/tap/symfony-cli

Debian/Ubuntu — APT based Linux

$ curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash
$ sudo apt install symfony-cli

Download packages from GitHub: amd64, arm64, i386.

Fedora/CentOS/SUSE/RedHat — YUM based Linux

Use yum instead of dnf on older versions.

$ curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.rpm.sh' | sudo -E bash
$ sudo dnf install symfony-cli

Download packages from GitHub: aarch64, i386, x86_64.

Alpine — APK based Linux

$ sudo apk add --no-cache bash
$ curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.alpine.sh' | sudo -E bash
$ sudo apk add symfony-cli

Download packages from GitHub: aarch64, x86, x86_64.

Binaries

Download binaries from GitHub: 386, amd64, arm64.

Choose one of the following installation methods:

Homebrew

$ brew install symfony-cli/tap/symfony-cli

Binaries

Download binaries from GitHub.

Choose one of the following installation methods:

Scoop

$ scoop install symfony-cli

Binaries

Download binaries from GitHub: 386, amd64.

Step 2. Create New Symfony Applications

Use the symfony binary provided by the Symfony CLI to create new applications:

If you are building a traditional web application:

$ symfony new --webapp my_project

If you are building a microservice, console application or API:

$ symfony new my_project

You can also read Symfony Docs to learn about installing Symfony with Composer.

Install Symfony Components

You can also enjoy Symfony features without creating new applications. Symfony Components, a set of decoupled and reusable libraries, work on any existing PHP application.

Install Composer and run this command to add a Symfony component in your app:

$ composer require             
        

Additional Resources

Symfony Source Code is hosted on GitHub and released under MIT license, which is friendly for developers and safe for companies.
Subscribe now to receive an email when a new Symfony version is published or when a Symfony version reaches its end of life.
Symfony Demo: a reference application to learn how to develop applications following the Symfony Best Practices.