Live data from Hacker News

Symfony 2.0 is now available

symfony.com

21–30 of 75 posts

Re: Symfony 2.0 is now available

#21
post #8

For those wants to know more about Symfony, I can assure you Symfony and Yii are at different leagues. Symfony is so much more featured than any PHP framework out there. Yml based settings and modeling plus the Admin Generator is one of a kind. I believe it is even better than Django and Rails, when it comes to flexibility and extensibility.

How is 'yml based settings' one of a kind, or a deal-breaker when choosing frameworks?

I should not say 'yml based settings' is a deal-breaker but it sure is a very good way of configuring the project. I personally take advantage of this convenience quite often. You can easily update your schema through yaml files and you can build&generate your whole model including auto-generated forms & filters for CRUD in a glimpse. I believe this is very friendly with agile principles.

Re: Symfony 2.0 is now available

#22

> Everything is a Bundle in Symfony2: A bundle is a directory containing a set of files (PHP files, stylesheets, JavaScripts, images, ...) that implement a single feature (a blog, a forum, etc). That changes everything. Share your bundles between your projects or publish them in the wild. I have no idea whether this is novel, but it is to me, and I really like it.

Sounds a little like apps in Djangoland. Maybe someone who knows both frameworks could confirm.

Re: Symfony 2.0 is now available

#23
post #16
post #3

I'm currently in process of building compatibility layers from our two old PHP frameworks (MidCOM and Midgard MVC) to Symfony, and have been very pleasantly surprised with both the code quality and the responsiveness of the community. As part of this work I will also write new Symfony2 bundles for whatever functiolity our old frameworks had a SF2 misses. The first one is the ability to run Symfony2 apps under AppServ…

Since PHP 5.4 there's a web server built-in: http://php.net/manual/en/features.commandline.webserver.php Maybe you could rely on that, instead of aip :)

Maybe, though AiP gives us nice control of the process. And it also supports other modes than HTTP, like Mongrel2 and SCGI:

https://github.com/indeyets/appserver-in-php/tree/master/AiP...

Anyway, based on your suggestion I posted a quick ticket about adding support for the built-in PHP webserver:

https://github.com/indeyets/appserver-in-php/issues/17

Re: Symfony 2.0 is now available

#24

If you need a lightweight - Sinatra like framework check http://silex-project.org/ it is built from Symfony components and works like a charm

Silex is cool. I did a quick-and-dirty benchmark with it and AiP a while back, and performance was comparable to Node.js and Express:

http://bergie.iki.fi/blog/php_can_perform_better_than_node-j...

Re: Symfony 2.0 is now available

#25
post #9
post #6

Earlier quoted context omitted.

Same here. No Idea where this came from. To be honest the effort put into this could've just contributed to an existing open source framework for improvement.

Careful; symfony has been around for a few years already. Saying the effort should be put into some other framework is effectively turning the case upside down.

Exactly. It actually seems to go the way that various other PHP frameworks can be replaced with Symfony2.

There is already a compatibility bundle for running Zend Framework apps with Symfony2:

http://symfony2bundles.org/beberlei/WhitewashingZFMvcCompatB...

And I'm working on another bundle that allows running Midgard MVC apps:

https://github.com/bergie/MidgardMvcCompatBundle

Re: Symfony 2.0 is now available

#26
post #22

> Everything is a Bundle in Symfony2: A bundle is a directory containing a set of files (PHP files, stylesheets, JavaScripts, images, ...) that implement a single feature (a blog, a forum, etc). That changes everything. Share your bundles between your projects or publish them in the wild. I have no idea whether this is novel, but it is to me, and I really like it.

Sounds a little like apps in Djangoland. Maybe someone who knows both frameworks could confirm.

This has been a core idea in both Midgard MVC and MidCOM PHP frameworks, though we called them components.

http://wiki.openpsa2.org/index.php/MidCOM_Components

https://github.com/midgardproject/midgardmvc_core/blob/maste...

Re: Symfony 2.0 is now available

#27
post #8

For those wants to know more about Symfony, I can assure you Symfony and Yii are at different leagues. Symfony is so much more featured than any PHP framework out there. Yml based settings and modeling plus the Admin Generator is one of a kind. I believe it is even better than Django and Rails, when it comes to flexibility and extensibility.

Does Symfony had Lazy loading? which is the reason behind the performance of Yii.

Re: Symfony 2.0 is now available

#28
Congrats to Symfony2 Team!

FYI, Symfony2 requires minimum PHP version 5.3.2

PHP 5.3 which is not something every shared hosting provider will support, most are still on 5.2.series. so everyone should keep that in mind while writing PHP app with Symfony2

Re: Symfony 2.0 is now available

#29
post #8

For those wants to know more about Symfony, I can assure you Symfony and Yii are at different leagues. Symfony is so much more featured than any PHP framework out there. Yml based settings and modeling plus the Admin Generator is one of a kind. I believe it is even better than Django and Rails, when it comes to flexibility and extensibility.

Just curious about that first sentence there... are you saying that Symfony and Yii are both in the same league, different from everything else, or that Symfony is in a league different from the one that Yii is in?

I haven't looked at Symfony, but I was really impressed by the event driven nature of Yii, and I couldn't wipe the smile off my face when I started looking into the active page elements.

I think 2.0 is as good an excuse as any to check out Symfony though, so goodbye to the weekend :)

Re: Symfony 2.0 is now available

#30
post #21

Earlier quoted context omitted.

How is 'yml based settings' one of a kind, or a deal-breaker when choosing frameworks?

I should not say 'yml based settings' is a deal-breaker but it sure is a very good way of configuring the project. I personally take advantage of this convenience quite often. You can easily update your schema through yaml files and you can build&generate your whole model including auto-generated forms & filters for CRUD in a glimpse. I believe this is very friendly with agile principles.

But you can just as easily update settings stored in other formats.
Post reply on HN