5
votes

We're starting a project right now and we wanted to know what's the best course: use Symfony 2, even though it's not stable and final, or use Symfony1 and upgrade later?

4

4 Answers

6
votes

I would recommend to start with Symfony2 : migrating from Symfony 1 to 2 will be very difficult, Symfony2 nearly being a totally different framework.

I have to add that even migrating between minor versions of Symfony 1 can be a real pain.

5
votes

I sort of agree with Frosty but, i have just started a project and elected to do it in 1.4 because.

  • I already have a lot of code blocks and whole modules i can reuse and time is of the essence
  • S2 is not stable and what i am doing needs to be stable from day one
  • Documentation for S2 while good is not at the same level as that for S1.x
  • A lot of the plugins for S2 are works in progress whereas many of those for S1.x are solid and again well documented
  • Speed performance is not an issue so S2's gains are no help to me
  • The client does not care as long as they get a deliverable
  • S1.x (well 1.4) will be supported until end of 2012, over 18 months which is often a lot longer than the average life of a pice of software, especially in the web arena
  • There is not native admin backend and i really need one that just works
  • In 6 to 12 months in can reverse engineer, by hand, this project fully working and tested in S2.x with oodles of documentation to hand
  • Fabpot is a very clever guy and will probably have written a script to convert 1.4 to 2.x so i don't have to worry (ok perhaps he won't but all the other hold)

The above boils down to yes S2 is probably stable enough and the documentation is useable and if you have enough time to go up the learning curve but it will depend on individual cases as to which way the cookie crumbles.

4
votes

IN few words... Impossible. We asked Mr. Fabien Potencier something like... "Will be possible to migrate from symfony1 to symfony2?". His answer was much short than mine... NO.

Symfony2 has nothing to do with Symfony1. Only share name, no more. Start new project in SF2, try to understand how it works and you will be able to mantain project with new features.

Migrate is bad...

-1
votes

2019 Update

It seems this question is still active in 2019. Nowadays there are new technologies, that can automate all PHP-related work.

Thanks to tools like:

you can:

  • prepare rules to A → B migration
  • then run it on your code base
  • it will change all the patterns there, no matter if 10 k lines of 1 000 k lines

See a more detailed answer.


Let me know if you need more specific answer tailored to your project.