New project and best version to use

Hello, I would like your opinion about what version to choose for a new project. Should I go with the current 1.3.3 or trying the v2 serie?

I use the tutorials based on 1.x version in order to understand how phalcon works. Everything looks fantastic. But when I get the github samples, I see that you use the version 2 and this confuse me.

Could you please advice me what tutorial to check out, or if there is any documentation on version 2 ( like the doc of the 1.x that is excellent )

Thank you!



37.9k

Hey man

Phalcon 2 re-write to Phalcon version 1.x(cover c to zephir). Version 2 curently development



11.8k

If I'm you I'll go with V2, you can help the community with bugs , learn Zephir and like Thien said, it's a rewrite of v1 so everything should work the same.



410

Thank you for the response!

As I can understand from your answers, the sample code from, lets say, INVO tutorial (http://docs.phalconphp.com/en/latest/reference/tutorial-invo.html) sould be working with the version 2? Without make any change in the code? I'm, asking that because the code is a bit different in the tutorial and in the github examples. Just check the public/index.php file as gived here http://docs.phalconphp.com/en/latest/reference/tutorial-invo.html and as gived at github https://github.com/phalcon/invo/blob/master/public/index.php As you can see there are some differents in the code.

Sould I go with the tutorial? Is there any tutorial for version 2?

Thank you

Phalcon 2.0 works with backwards compatibility to the 1.x version. Any sample that you use works the same when using 1.x or 2.x.

I have been using 2.x in production for more than 6 months now. The transition from 1.x to 2.x was just recompiling the extension for me.

I would vote to use 2.x because it is due to be released very soon.

Thank you for the response!

As I can understand from your answers, the sample code from, lets say, INVO tutorial (http://docs.phalconphp.com/en/latest/reference/tutorial-invo.html) sould be working with the version 2? Without make any change in the code? I'm, asking that because the code is a bit different in the tutorial and in the github examples. Just check the public/index.php file as gived here http://docs.phalconphp.com/en/latest/reference/tutorial-invo.html and as gived at github https://github.com/phalcon/invo/blob/master/public/index.php As you can see there are some differents in the code.

Sould I go with the tutorial? Is there any tutorial for version 2?

Thank you



410

Thank you Nick for the response.

Could you please help me to find any tutorial based on version 2, cause the documentation is for 1.x serie.

Thank you!

Version 2 doesn't change the public API at all. By that I mean how you as the web developer interact with it won't change. Any tutorials referring to v1.3 should also work if you're using v2

Thank you Nick for the response.

Could you please help me to find any tutorial based on version 2, cause the documentation is for 1.x serie.

Thank you!



410
edited Jan '15

Thank you again for the info! Ok, I will stick with the documentation of 1.x version and procced with my project.

Thank you a lot guys