Re: Good OO PHP resources? Open Source APIs?
| From: | Michael Sims | Date: | Fri, 20 Sep 2002 00:09:26 +0000 |
| Subject: | Re: Good OO PHP resources? Open Source APIs? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116956@lists.php.net to get a copy of this message | ||
On Thu, 19 Sep 2002 00:50:56 -0400, you wrote:
>By doing so I want more and more of my PHP to be purely OO. I'm fairly
>aware of how to write my own classes for data but are their any frameworks
>out there to do the foundation stuff already?
Have you looked at PEAR? It comes with the PHP distribution and has
quite a few foundation-like classes, including PEAR DB, a database
abstraction layer. If you build PHP from source it gets installed in
/usr/local/lib/php (assuming you're on a unix variant). Documentation
is at
http://pear.php.net
Also take a look at Horde. Horde is a suite of PHP applications,
including a popular web-based mail client called Imp and a really
nifty web-based CVS browser called Chora. But Horde is also a group
of common libraries that handle a lot of base things like retrieving
form data and storing user preferences in a OO-way. I just recently
started looking at it because I wanted to use Chora, but I'm having
fun just looking through their base classes to see how they
implemented things. It looks like really clean, nicely separated
code, and I personally plan to learn a lot from looking through it.
http://www.horde.org
You can browse their source code directly from:
http://cvs.horde.org
HTH