> Symfony 2 >

Course Overview

Login to bookmark this course

How to Upgrade to Symfony 2.8, then 3.0!

Take your Symfony app to the next level. Upgrade to 3.0 without breaking your project!

  • 613 students
  • EN Captions
  • EN Script
  • Certificate of Completion

Your Guides

About this course

What PHP libraries does this tutorial use?

// composer.json
{
    "require": {
        "php": ">=5.3.9",
        "ext-pdo_sqlite": "*",
        "doctrine/doctrine-bundle": "~1.5", // 1.6.3
        "doctrine/doctrine-fixtures-bundle": "~2.2", // 2.3.0
        "doctrine/orm": "~2.4", // v2.5.4
        "erusev/parsedown": "~1.5", // 1.6.0
        "ezyang/htmlpurifier": "~4.7", // v4.7.0
        "incenteev/composer-parameter-handler": "~2.1", // v2.1.2
        "ircmaxell/password-compat": "~1.0", // v1.0.4
        "knplabs/knp-paginator-bundle": "~2.4", // 2.5.3
        "leafo/scssphp": "~0.1.5", // v0.1.10
        "patchwork/jsqueeze": "~1.0", // v1.0.7
        "sensio/distribution-bundle": "^5.0", // v5.0.7
        "sensio/framework-extra-bundle": "~3.0", // v3.0.16
        "symfony/assetic-bundle": "~2.8", // v2.8.0
        "symfony/monolog-bundle": "~2.7", // 2.11.1
        "symfony/swiftmailer-bundle": "~2.3", // v2.3.11
        "symfony/symfony": "3.0.*", // v3.0.9
        "twig/extensions": "~1.2" // v1.3.0
    },
    "require-dev": {
        "sensio/generator-bundle": "^3.0" // v3.0.7
    }
}

So you want to upgrade to Symfony 3.0? An excellent choice! And guess what, it won't even break your app.

In this tutorial, we'll show you how to upgrade to Symfony 2.8 and then find and fix deprecated features. Then, we'll go to 3.0!

Symfony 3.0 also comes with a new directory structure. It's great, but it takes a little bit of work to move your project to it. One chapter is devoted entirely to converting to that structure.

Go 3.0!

Next courses in the Symfony 2: Starting in Symfony 2 section of the Symfony 2 Track!

5 Comments

Sort By
Login or Register to join the conversation
Default user avatar Rafael 6 years ago

Any updates?

| Reply |

Sorry for the delay Rafael - we had to wait a loooong time for AsseticBundle to get a new release that was compatible with Symfony 3.0 (that blocked our upgrade). That's now happened - we'll get this last chapter up in the next few weeks.

Thanks for the poke!

1 | Reply |

Rafael, if you only need step by step guides: for migration of sf23 to sf28 => https://gist.github.com/mic... and then migration to sf3 => https://gist.github.com/mic... . I'm not as good as knp to explain, but it's better than nothing ^^

weaverryan: the use of assetic is discouraged by Symfony team or not ? I'd like to see instead your integration of recent frontend tools like ... webpack, reactjs and so on ! <3

Let me know when you will publish your complete tutorial, I will put a link on my gist.

1 | Reply |

Hey, Mickael!

Assetic bundle just was excluded from the Symfony Standard Edition due to its low usage. I mean, Symfony SE could be used for creating API, etc. where Assetic bundle doesn't need entirely. Many devs used Gulp, Webpack, etc. to control their assets. That's another reason why Assetic was excluded. But assetic is a cool bundle and you still could use it in your projects as well if you familiar with it or prefer to control assets with a PHP.

BTW, we already have a Gulp tutorial if you haven't seen it yet. And most likely we will have a Webpack one in the future according to this Ryan's twit.

Cheers!

| Reply |

Victor said it all perfectly! We will definitely have something on Webpack (and ReactJS) - hopefully in the next couple of months (but can't promise!). Thanks for posting your gists - it's always good to have more resources for people going through this :).

Cheers!

| Reply |

Delete comment?

Share this comment

astronaut with balloons in space

"Houston: no signs of life"
Start the conversation!