tags:

views:

741

answers:

6
Duplicate

Good open source PHP projects

What is the best open source application written in PHP to reference for ‘good code’?

What are your favorite examples of well-coded PHP applications? [closed]

I'm php newb. I want to explore code of more experienced programmers. Please advise open source php projects which have examples of good php code, good architecture... Thanks.

+1  A: 

http://www.magentocommerce.com/ but it may be a bit advanced if you are new to web programming in general

cherouvim
A: 

Found the code from the ZendFramework nice, although it's somewhat vebose to my tase.

Using phpDocumentor compatible comments, does help improve your code. You will be able to generate documentation, and when you are writing a long/complex description for a function, you might consider splitting up the function in 2 functions.

When using a eclipse as editor, it will read the documentation comments and show them in a tooltip when you are calling your method.

Bob Fanger
A: 

KohanaPHP is quite clear to my opinion.

Ikke
+2  A: 

Zend Framework and the apps developed with its help (like Magento, see cherouvim's answer) are pretty nice. I'm a ZF fanatic myself, but for starters it might be a bit tricky if you're not familiar with the MVC pattern or OOP.

I'll recommend you the easiest and the most fun way to get started. In my opinion Wordpress is a pretty neat platform and the source code, in my opinion, is wrote pretty good. You can also try to study the plug-ins and so on. And when you familiarize yourself with OOP and MVC you can jump right into Zend Framework's projects (Mangento would be nice) or right in the documentation and start developing.

Good luck!

Bogdan Constantinescu
+1  A: 

CodeIgniter is really good.

ksuralta
A: 

Wordpress (recommended above) has horrible code in my opinion and I'll advise any n00b to never look at it.

Zend Framework is very clean and elegant, and you can learn a lot from it, not only how to write php code, but how to write any language OOP code.