Package Proposal: MVCnPHP
| From: | Tony Bibbs | Date: | Sat, 05 Apr 2003 21:15:44 +0000 |
| Subject: | Package Proposal: MVCnPHP | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-14931@lists.php.net to get a copy of this message | ||
Per a thead from a few months ago on the feasibility of including design patterns in PEAR, I am offering up the one example that I feel makes sense...a PHP implementation of the MVC design pattern I call MVCnPHP.
This package is purely a framework that can be used in applications to make them more maintainable and more reusable. The MVC design pattern does require a slight shift in thought on how you develop PHP applications with it but I argue the benefits are real. While this is a framework, it is useless without seeing it in action so, to that end, I have built a demo that is included.
I consider this code to be a release candidate leaving room for a few tweaks. For those who are unaware of the MVC design pattern please see the following:
http://ootips.org/mvc-pattern.html
http://www.phppatterns.com/index.php/article/articleview/11/1/8/
http://www.phppatterns.com/index.php/article/articleview/19/1/1/
What I have does not aim to be a Struts compatible implementation (just an FYI for any Java developers out there).
Here are links you all will find pertinent:
PHPDoc Documentation:
http://project.geeklog.net/~tony/MVCnPHP-1.0rc1/docs/
CVS Viewer:
http://cvs.geeklog.net/chora/cvs.php/MVCnPHP
Demonstration of a simple Contact Manager application using MVCnPHP:
http://project.geeklog.net/~tony/MVCnPHP-1.0rc1/contactmanager/
Tarball of source code:
http://project.geeklog.net/~tony/MVCnPHP-1.0rc1.tar.gz
Zip of source code:
http://project.geeklog.net/~tony/MVCnPHP-1.0rc1.zip
--
Tony Bibbs [R]egardless of what you may think of our penaltony@tonybibbs.com system, the fact is that every man in jail is one
less potential fisherman to clutter up your
favorite pool or pond. --Ed Zern