Forum Moderators: coopster

Message Too Old, No Replies

PEAR: yes or no?

         

tata668

7:32 pm on Mar 9, 2005 (gmt 0)

10+ Year Member



Some PEAR packages seam really cool but I worry about my code starting to be too *dependant* on PEAR if I start using it. You know, the way it handles errors, etc.

What are your thoughts? Recommendations?

I'm a newbie with PEAR.

orion_rus

8:43 pm on Mar 9, 2005 (gmt 0)

10+ Year Member



I'm a newbie too. But FormBuilder is absoulutely great and then it be releases it should have a great advantage. It can save you months of coding
I'm for it!

vabtz

8:45 pm on Mar 9, 2005 (gmt 0)



I am not a PEAR fan personally

I prefer to just use what I find good and maintain my own libraries I use from project to project.

jusdrum

9:13 pm on Mar 9, 2005 (gmt 0)

10+ Year Member



The most useful parts of PEAR for me are the Database interface libraries. This makes writing web applications that use a database in the back-end a breeze. As for any other PEAR modules, I haven't used enough of them to give you an informed opinion.

The ultimate combination is using PEAR DB modules and the Smarty templates system to write web applications. It saves hours of development time.

Timotheos

9:40 pm on Mar 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you watch the developer news over at Planet PHP you'll see a lot of news for Pear. There's even a side box listing recent Pear/Pecl releases. There's a lot of developement, support and enthuasiasm for it so I don't think you'll go wrong with drawing on it for some libraries.

Tim

ironik

11:01 pm on Mar 9, 2005 (gmt 0)

10+ Year Member



PEAR libraries are pretty cool, but when you write code using them it makes that code less portable.

In my situation I'm writing an application that will be used by multiple people so I can't be certain that the servers they host on have the PEAR package already installed... which kind of rules out using it.

jatar_k

11:15 pm on Mar 9, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I have never been sold on PEAR, all it has ever given me is bloat and headaches and I refuse to use it.

personal opinion only, lots of people use and like it.

tata668

2:13 pm on Mar 10, 2005 (gmt 0)

10+ Year Member



Timotheos:

There's a lot of developement, support and enthuasiasm for it so I don't think you'll go wrong with drawing on it for some libraries.

You can say the same thing about Smarty, and I wouldn't use it.

I like that PHP is light, fast, easy to deploy and easy to modify. I try to avoid any addon that would decrease those features.

But again, I'm new to PEAR so my mind is not done about it yet.

vabtz

2:20 pm on Mar 10, 2005 (gmt 0)



Smarty is a pretty damn good template system IMO

For an alternative to that try the template engine in phpbb

tata668

3:27 pm on Mar 10, 2005 (gmt 0)

10+ Year Member



I've never said Smarty was not good.
I just say it's too big for my personnal taste. I prefer a plain php template engine.

But anyway, I'm looking for PEAR opinions here please! :)

dreamcatcher

4:02 pm on Mar 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I`m no PEAR fan either. I prefer Savant 2 myself, but each to his own.

Timotheos

4:29 pm on Mar 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can say the same thing about Smarty, and I wouldn't use it.

I agree. I haven't used PEAR either all though I've been tempted ;-) I think the original post was fearing some sort of dependancy on PEAR. All I'm saying is if you like it don't be afraid to use it.

I'm a Savant fan too. Interesting that the developer of Savant just started working on an application framework called SolarPHP. It's similar in goals to PEAR and Horde.

Tim

dreamcatcher

4:41 pm on Mar 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Savant`s author (Paul M Jones) also offers great support. Whenever I have had any questions and e-mailed him, he has responded so fast.

Its like text editors, once you find the one you like, no matter how many others you try, you always keep coming back to the one you like best.

dc

tata668

4:48 pm on Mar 10, 2005 (gmt 0)

10+ Year Member



What is the advantage of the Savant template engin over a really simple one [massassi.com]?

Timotheos

6:42 pm on Mar 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the advantage of the Savant template engin over a really simple one?

That article is good and really shows what's at the heart of Savant. So what's the advantage? The only one I can see is its plugin feature and the ability to have a compiler if needed (usually not). Savant really is that simple and well documented (I like that).

Tim

Warboss Alex

11:41 pm on Mar 10, 2005 (gmt 0)

10+ Year Member



The code bloat in PEAR isn't worth it. If you like the PEAR classes, just write your own based off them, but limit them to the bare minimum of your own needs. You can always add to them later.

Custom-scripted, good OO designed-code will always be better than existing libraries, which are designed to be comprehensive, portable, but for these reasons also inefficient (perfomance-wise).