Live data from Hacker News

Symfony 2.0 is now available

symfony.com

61–70 of 75 posts

Re: Symfony 2.0 is now available

#61
post #40
post #33

Can someone comment on Symfony vs. CodeIgniter? I've done a few projects in CI - any big compelling reason to switch to Symfony for the next one?

There is also sfGuardPlugin, a great plugin for user management. It has everything about user management, easily integrates with symfony. Saves you so much time.

This is a symfony 1.4 plugin. A nice Symfony2 equivalent is FOSUserBundle (https://github.com/FriendsOfSymfony/FOSUserBundle).

Re: Symfony 2.0 is now available

#62

I've looked through some source code in the Symfony 2 components. The code is well organized, commented, and most of all it is of high quality. As far as I am concerned, Symfony 2 is the gold standard example for developing a PHP project of any kind.

i researched a few php frameworks (sy2, zend, cake, li3, kohana, etc.) a little while, and by far i'm most satisfied with lithium (li3, http://lithify.me/). depending on 5.3 seems to open up a wide range of possibilities and oftentimes i feel like 'this is the way to do it', whereas i felt like 'the framework is getting in my way' with sy2 for example.

Re: Symfony 2.0 is now available

#63

I've looked through some source code in the Symfony 2 components. The code is well organized, commented, and most of all it is of high quality. As far as I am concerned, Symfony 2 is the gold standard example for developing a PHP project of any kind.

what do you think about Yii framework which is also gaining popularity these days,

I think it's disgusting. It tries to use the component model, similar to ASP.NET. Even Microsoft realized what a disaster it was, and the community moving to ASP.NET MVC, which is similar to traditional frameworks.

Re: Symfony 2.0 is now available

#64

I've looked through some source code in the Symfony 2 components. The code is well organized, commented, and most of all it is of high quality. As far as I am concerned, Symfony 2 is the gold standard example for developing a PHP project of any kind.

what do you think about Yii framework which is also gaining popularity these days,

I used Yii for a little bit while trying to decide if I wanted to use it or Symfony 2, and I just didn't like it. The page caching felt horribly clunky to me, and there was no built-in way to manage HTTP headers.

Ultimately though, I didn't decide against Yii because of what it couldn't do, but decided on Symfony 2 because of what it did do. It was just a more pleasant experience, and I never felt like I had to fight the framework to do what I wanted to do. Sure, it had a steeper learning curve than Yii (I started using it in the preview release stage, when documentation was in flux), but I feel that it made me write better code.

Re: Symfony 2.0 is now available

#65
post #53

Earlier quoted context omitted.

Sadly, Symfony/Symfony2 are not widely used enough . :/ (This may be a bit flippant, but seriously--there's not really a good reason to be using stuff like CakePHP, etc. in 2011.)

I may be in the process of updating a very neglected cakephp site. When I created the site, I had heard of Symfony but went with cakephp. I've not followed either framework for well over a year, so could you please give your reasons for Symfony and against cakephp?

CakePHP is fundamentally old. It does not avail itself of the capabilities offered in PHP5.3+ and persists in a number of outdated patterns that I consider detrimental to writing good, reusable, maintainable code. It is also incredibly slow, such that it is sort of the "gimme" for people wanting to write benchmarks to show how fast and awesome their new framework is.

Symfony2, on the other hand, is very well-designed (separating entirely from Symfony 1.3 to develop Symfony2 was a great decision), incredibly flexbile, and amazingly performant. It is, no exaggeration, the best PHP system I've ever seen, open-source or otherwise; unless you're Mr. Potencier, reading its code will make you a better PHP programmer. You can actually strip it down so far as to be just a microkernel + dispatch, which is what Silex[1] is. You can also built all manner of whatever-you-want on top of it. There's no real downside to using at least part of the Symfony2 ecosystem for any PHP project.

http://silex-project.org/

Re: Symfony 2.0 is now available

#66
post #49

Earlier quoted context omitted.

CodeIgniter is a fundamentally PHP4 system that is, today, wedged into more modern PHP5.3 programming practices. Personally, I can't see a good reason to use CI today (and I say that as someone who has used it extensively in the past--my capstone project at school was based on it!). If you want something CI-esque, you're better off looking at Kohana...but Kohana seems to give short shrift to certain important aspects…

I disagree with your view of CodeIgniter. It's one of the best documented frameworks out there; it's quick to learn; and it doesn't require a lot of typing/coding. It's best suited for smaller projects, I would say, but for those projects it rocks.

CodeIgniter's documentation is indeed very good. Much better than Symfony2's, at least. I'd agree with you on that.

CodeIgniter also has no conception of how to actually work in PHP5.3. Perhaps CodeIgniter will acquire that down the road, but right now it's a poor routing kernel surrounded by a lot of inconsistent and very ugly modules that are duplicated or improved upon in the other major frameworks in common use.

"Doesn't require a lot of coding" is nonsensical; I can build a Symfony2 application to do nontrivial task in less time, with better and more reliable code, than I can the equivalent in CodeIgniter. And I used CodeIgniter since around the time of the original release. There are not many cases where something is top-to-bottom dominant in its field, but aside from documentation, which is being improved upon incrementally, Symfony2 really does fit that bill.

Re: Symfony 2.0 is now available

#67

Earlier quoted context omitted.

Symfony is a rather popular PHP framework; it is commonly regarded in the PHP community as one of the higher-quality frameworks (amidst many half-baked frameworks that cause serious problems once your use case moves past the blog tutorial). In terms of functionality, it's basically for PHP what Rails is for Ruby, but unlike many other PHP frameworks, it's been designed with the platform in mind rather than trying to…

are you saying Symphony is better than market leaders Zend and Cakephp and becoming more popular these days , isnt it so that its much easier to find a Zend plugins/libraries or Cakephp ready-made plugin/library than to find Symphony code snippets

I have not seen a greenfield, or even brownfield, CakePHP or Zend project in years, outside of $BigCo environments. Calling CakePHP in particular a "market leader" seems rather wrong.

Zend is well-written and solid, but old; it hasn't been materially upgraded for PHP5.3--which is all you should be using these days, there's no good reason not to.

Symfony2 can trivially use Zend-based components. (It does, for some tasks.) I've heard it wise-assedly called "ZF3" because of its compatibility in the past.

Re: Symfony 2.0 is now available

#68
post #25
post #9

Earlier quoted context omitted.

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

Whoa, this is very cool. (I have a legacy Midgard MVC app I'd like to get rid of.)

Between Symfony2 and Silex, I'm not sure what case there is to use anything else anymore. It seems like the low and high ends are very well covered in the Sensio Labs environment, and I'm not sure how much room there is in the middle.

Re: Symfony 2.0 is now available

#69
I wish they would stop referring to their documentation as a "book." The keep calling the link to http://symfony.com/doc/current/book/index.html as their book, yet it offers no ebook manner of being accessed (my kingdom for a PDF.)

I can't help but wonder who this "book" is being marketed to because of this "you can only access the book while you're fully online" limitation.

Re: Symfony 2.0 is now available

#70
post #63

Earlier quoted context omitted.

what do you think about Yii framework which is also gaining popularity these days,

I think it's disgusting. It tries to use the component model, similar to ASP.NET. Even Microsoft realized what a disaster it was, and the community moving to ASP.NET MVC, which is similar to traditional frameworks.

[deleted]
Post reply on HN