Speaking of the Pear libraries. If you’ve never used them, you should! Pear libraries are just about the greatest thing to ever be invented, right behind bacon and computers!
The Pear Repository contains a crapload of PHP Classes that help you do just about anything you can think of! One of the classes that I probably use the most is DB. If you’ve ever dealt with stuff in a DB, you know how crappy it can be if you ever have to switch DB backends. With DB you use standard API calls like
connect() along with a host of methods that making receiving data breeze (automatically dumping ALL results of a query into an associative array).
Some of my other favorites:
There are a ton more, including a Calendar which is a damn copy of my Calendar class that I made for CERIAS ;) Well not really, but it does the exact same thing I did and didn’t have a release until well after I finished mine:
Calendar provides an API for building Calendar data structures. Using the simple iterator and it’s “query” API, a user interface can easily be built on top of the calendar data structure, at the same time easily connecting it to some kind of underlying data store, where “event” information is being held.