◐ Shell
clean mode source ↗

Download Symfony Framework and Packages

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. Learn more about Symfony CLI.

To add the Symfony CLI binary to existing projects that already use Docker, update your Dockerfile with the following instruction:

Choose one of the following installation methods:

Installer — via wget or curl

Homebrew install Homebrew

Debian/Ubuntu — APT based Linux

Download packages from GitHub: amd64, arm64, armhf, i386.

Fedora/CentOS/SUSE/RedHat — YUM based Linux

Use yum instead of dnf on older versions.

Download packages from GitHub: aarch64, armv6hl, i386, x86_64.

Alpine — APK based Linux

Download packages from GitHub: aarch64, armhf, x86, x86_64.

Binaries

Download binaries from GitHub: 386, amd64, arm64, armv6.

Packages provided by  Cloudsmith

Package repository hosting is graciously provided by Cloudsmith. Cloudsmith is the only fully hosted, cloud-native, universal package management solution, that enables your organization to create, store and share packages in any format, to any place, with total confidence.

Choose one of the following installation methods:

Scoop install Scoop

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:

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


Install Symfony Packages

You can use Symfony features in any PHP application, not only in Symfony projects. Symfony publishes over 250 independent packages, so you can add only what you need to your applications. Some of these packages, called components, are stand-alone and don't require other packages to work.

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

Additional Resources

Subscribe now to receive an email when a new Symfony version is published or when a Symfony version reaches its end of life.