Skip to content
  • About
    • What is Symfony?
    • Community
    • News
    • Contributing
    • Support
  • Documentation
    • Symfony Docs
    • Symfony Book
    • Screencasts
    • Symfony Bundles
    • Symfony Cloud
    • Training
  • Services
    • Platform.sh for Symfony Best platform to deploy Symfony apps
    • SymfonyInsight Automatic quality checks for your apps
    • Symfony Certification Prove your knowledge and boost your career
    • SensioLabs Professional services to help you with Symfony
    • Blackfire Profile and monitor performance of your apps
  • Other
  • Blog
  • Download
sponsored by
  1. Home
  2. Documentation
  3. Setup
  4. How to Install or Upgrade to the Latest, Unreleased Symfony Version

How to Install or Upgrade to the Latest, Unreleased Symfony Version

Edit this page

In this article, you'll learn how to install and use new Symfony versions before they are released as stable versions.

Creating a New Project Based on an Unstable Symfony Version

Suppose that the Symfony 6.0 version hasn't been released yet and you want to create a new project to test its features. First, install the Composer package manager. Then, open a command console, enter your project's directory and run the following command:

1
2
# Download the absolute latest commit
$ composer create-project symfony/skeleton my_project -s dev

Once the command finishes, you'll have a new Symfony project created in the my_project/ directory.

Upgrading your Project to an Unstable Symfony Version

Suppose again that Symfony 6.0 hasn't been released yet and you want to upgrade an existing application to test that your project works with it.

First, open the composer.json file located in the root directory of your project. Then, edit the value of all of the symfony/* libraries to the new version and change your minimum-stability to beta:

1
2
3
4
5
6
7
8
{
      "require": {
+         "symfony/framework-bundle": "^6.0",
+         "symfony/finder": "^6.0",
          "...": "..."
      },
+     "minimum-stability": "beta"
  }

You can also use set minimum-stability to dev, or omit this line entirely, and opt into your stability on each package by using constraints like 6.0.*@beta.

Finally, from a terminal, update your project's dependencies:

1
$ composer update

After upgrading the Symfony version, read the Symfony Upgrading Guide to learn how you should proceed to update your application's code in case the new Symfony version has deprecated some of its features.

Tip

If you use Git to manage the project's code, it's a good practice to create a new branch to test the new Symfony version. This solution avoids introducing any issue in your application and allows you to test the new version with total confidence:

1
2
3
4
5
6
7
8
$ cd projects/my_project/
$ git checkout -b testing_new_symfony
# ... update composer.json configuration
$ composer update "symfony/*"

# ... after testing the new Symfony version
$ git checkout master
$ git branch -D testing_new_symfony
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.
TOC
    Version

    Symfony 7.1 is backed by

    Become certified from home

    Become certified from home

    The life jacket for your team and your project

    The life jacket for your team and your project

    Version:

    Table of Contents

    • Creating a New Project Based on an Unstable Symfony Version
    • Upgrading your Project to an Unstable Symfony Version

    Symfony footer

    Avatar of Jeroen Bouwmans, a Symfony contributor

    Thanks Jeroen Bouwmans for being a Symfony contributor

    1 commit • 28 lines changed

    View all contributors that help us make Symfony

    Become a Symfony contributor

    Be an active part of the community and contribute ideas, code and bug fixes. Both experts and newcomers are welcome.

    Learn how to contribute

    Symfony™ is a trademark of Symfony SAS. All rights reserved.

    • What is Symfony?

      • What is Symfony?
      • Symfony at a Glance
      • Symfony Components
      • Symfony Releases
      • Security Policy
      • Logo & Screenshots
      • Trademark & Licenses
      • symfony1 Legacy
    • Learn Symfony

      • Symfony Docs
      • Symfony Book
      • Reference
      • Bundles
      • Best Practices
      • Training
      • eLearning Platform
      • Certification
    • Screencasts

      • Learn Symfony
      • Learn PHP
      • Learn JavaScript
      • Learn Drupal
      • Learn RESTful APIs
    • Community

      • Symfony Community
      • SymfonyConnect
      • Events & Meetups
      • Projects using Symfony
      • Contributors
      • Symfony Jobs
      • Backers
      • Code of Conduct
      • Downloads Stats
      • Support
    • Blog

      • All Blog Posts
      • A Week of Symfony
      • Case Studies
      • Cloud
      • Community
      • Conferences
      • Diversity
      • Living on the edge
      • Releases
      • Security Advisories
      • Symfony Insight
      • Twig
      • SensioLabs Blog
    • Services

      • SensioLabs services
      • Train developers
      • Manage your project quality
      • Improve your project performance
      • Host Symfony projects

      Powered by

    Follow Symfony