Creating Your Own PHP Framework?

I spent the past few days fighting over the following battle, do I either use an existing PHP Framework or Build One.

I’ve currently been using my Model 1.5 Framework (ScottWork) for sometime, but have been using CodeIgniter on a few client projects and dabbling with some of the leading PHP Frameworks like Zend, Symfony, DooPHP, Yii and CakePHP.

All of this MVC stuff of course got me thinking, what if I want to get other developers to code for me? What if I want to get other developers to maintain my apps/code? What if…?

So I write my own MVC framework here’s a summary if it’s main components:

Here’s my opinion of those main components after comparing them to my Model 1.5 framework (scottwork).

In Summary:

You could use a framework or spend time writing your own MVC framework as I have done. Some people like OO, some people like the order/structure a framework provides. Personally I don’t like spending lots of time coding, so I generate most of my stuff. I also don’t like spending time figuring out a framework’s shortcomings or finding bugs in a framework. I believe in writing small testable, programs/scripts (web pages) that do one thing and do them well.

Some interesting reading:

Comments

I’ve updated my opinion on this topic a little…

After you have a huge system of scripts not simple apps there’s something nagging me about the lack of structure.

Eventually I created a MVC version of my own framework called GinPHP. Soon I’ll release it on GitHub, stay tuned.

Stay tuned for GinPHP on Google Code: http://code.google.com/p/ginphp/

I’ve written a book on How To Build Your Own PHP Framework. It’s only $2.99 from Amazon. Check it out and give me some feedback.

Leave a comment

(required)

(required)