Your Favorite PEAR classes

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
seodevhead
Forum Regular
Posts: 705
Joined: Sat Oct 08, 2005 8:18 pm
Location: Windermere, FL

Your Favorite PEAR classes

Post by seodevhead »

This is a thread where you can let others know which PEAR classes you use and find most useful.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

none as yet. The only one I've used is the Excel Writer, which I find barely passable.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

I'm not a big fan of PEAR. It's a mixed bag of really good classes interspersed with plain bad code. It's also difficult to use anything for open source projects since a PEAR dependency is more trouble than anything else in that scenario. It's also undercut in a way to preserve PHP4 compliance, small quibble...;). The other facet I dislike is the licensing. Unless the project has elected to use the LGPL the code could be under the PHP License - makes using the classes in some projects impossible.

Overall? It's of limited utility. If it's an application where you expect the user to be able to access and update their PEAR installation (that rules out shared hosts) then feel free to use it. Just keep an eye out for similar libraries and classes outside of PEAR.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

The dependancies is what kills me too...

Single independant classes (or small groups) and i'll use em' otherwise f*ck it!!! :P
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

I use the benchmarking (timer) class for getting page generation times. Only because I know of no other alternative.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Never used it. I write everything from scratch.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

I use the benchmarking (timer) class for getting page generation times. Only because I know of no other alternative.
+

XDebug (from PECL) can benchmark a PHP script's execution time - and break it down by every single method/function call. I use it all the time to locate optimisation targets.
Post Reply