Ask HN: Examples of good PHP code (entire projects) where can I find them?

9 points by omilu ↗ HN
It's easy to find great examples of C (Redis, Git), but not easy to find good PHP. Anyone know where to look to find good PHP code worthy of study?

15 comments

[ 4.9 ms ] story [ 46.7 ms ] thread
You can look at the source of the symfony httpfoundation bundle, it is the best php code in my opinion.
Checkout Zend Framework 2 source code.
I find it a bit funny that all the recommendations here are of php frameworks and none that are projects built in php outside of that
Why? Any 'good' web project in any other language also involves a framework, does it not? Ruby has Rails, Python has Django, etc.

It should be no surprise that structured and organized PHP is better than raw PHP, and that examples of well written PHP would probably involve a framework.

Although I suppose it could be argued that since PHP is intended for the web, it shouldn't need a framework, and it should support more of the features a framework provides out of the box than it does. Nevertheless, the pattern of a framework is as useful in PHP for the same reasons as it is elsewhere, so I don't believe it says anything negative about the language per se.

You're missing my point. I'm not the Op but had I been the one asking the question, I would love to see actual projects that have clean php code written (even if they were using a framework), rather than refer to how a framework itself is written.
Within the last year, I think, somebody posted a link on HN to early Facebook code. I hardly glanced at it, but I remember that it looked well-structured and perhaps well-commented.