Page 1 of 1

Efficient, professional, and fast PHP code

Posted: Wed Oct 03, 2007 9:45 pm
by lath
Hello,

I have been programming in PHP for several years. During this time I have mainly relied on the basics with mostly procedural stuff. A splash of OO here and there but very few classes, patterns, or frameworks that I would consider elegant or efficient.

My question is, what resource do you suggest that I use in order to get to the advanced stages of PHP development? A resource that would help me churn out elegant, organized, efficient, scalable webpages using PHP?

I would prefer not to have to spend weeks learning the nuances of three or four different PHP frameworks. What I would like is a guide to creating a simple yet powerful MVC app in PHP without reinventing the wheel. Any suggestions?

Thanks.

Re: Efficient, professional, and fast PHP code

Posted: Thu Oct 04, 2007 12:33 am
by Christopher
lath wrote:I would prefer not to have to spend weeks learning the nuances of three or four different PHP frameworks. What I would like is a guide to creating a simple yet powerful MVC app in PHP without reinventing the wheel. Any suggestions?
Well ... you are going to have to spend weeks/months/years learning the nuances of something ... looking at good programmer's code would probably be the best something. And there is nothing wrong with reinventing the wheel ... as long as it is a really good wheel.

Posted: Thu Oct 04, 2007 7:45 am
by lath
That certaintly would help, I'm sure. Do you have any suggestions as to an open source fully-functional project that has really good PHP code I could mull over?

I've looked at some bulletin board's php code in the past and I'm sorry but that just wasn't good code.

Posted: Thu Oct 04, 2007 6:38 pm
by Michael A
I'm pretty much in the same boat. I'm good with procedural code, but I want to learn more about OOP and best practices.

I've been looking into vanilla forums. What attracted me to them is their utter simplicity and lack of pretense. I like clean, simple solutions and vanilla is certainly simple - and highly extensible.

Maybe one or two of the old pros here can have a look at the code and tell us if they think it's a sound platform.

Thanks! :wink:

Posted: Thu Oct 04, 2007 10:19 pm
by superdezign
I got a bunch of good ideas from the Zend Framework, and SwiftMailer is very well done and is a very good example of OOP, in my opinion. There are a lot of open source projects you'll want to avoid, mostly ones that are translated from a different language to PHP. They usually end up sloppy (similar to literal translation).

Posted: Thu Oct 04, 2007 11:49 pm
by Michael A
Many thanks!

I'm already looking at SwiftMailer. It seems like a great resource to examine! :wink:

EDIT: By the way, I'm really enjoying Volectricity... Some great info there. Thanks!