Page 1 of 1

Your Favorite PEAR classes

Posted: Thu Jun 08, 2006 8:43 pm
by seodevhead
This is a thread where you can let others know which PEAR classes you use and find most useful.

Posted: Thu Jun 08, 2006 11:25 pm
by feyd
none as yet. The only one I've used is the Excel Writer, which I find barely passable.

Posted: Fri Jun 09, 2006 4:18 am
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.

Posted: Fri Jun 09, 2006 12:14 pm
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

Posted: Fri Jun 09, 2006 12:37 pm
by jayshields
I use the benchmarking (timer) class for getting page generation times. Only because I know of no other alternative.

Posted: Fri Jun 09, 2006 7:34 pm
by Benjamin
Never used it. I write everything from scratch.

Posted: Sat Jun 10, 2006 11:48 am
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.