views:

1151

answers:

8

Hi hi, I'm looking for a easy to learn php library to use for my coming web app project. I've recently finished a web app with fully handwritten raw php code and it's absolutely hard to be done again for another project.
even though I have the recent project code snippets to be used again, but due to their non-structural arrangement (not object oriented), i have no passion to use 'em again.
I have no experience with common frameworks like ZF, CakePhp, CodeIgniter, so I think to get my hands on a multipurpose OO library for my web app and the framework learning will be the next step! any suggestion?

Update:
Many thanks guys, I have not enough time to get through the depth of every lib or framework you have kindly introduced. Since I'm going one step further I'm going to use ZF as famous framework which could provide me more job opportunities perhaps. thankssss :)

Update (A FEW MONTHES LATER!):
BTW, It takes too long for me to get familiar with ZF :(

+6  A: 

CodeIgniter is very lightweight and flexible. But if you're using PHP5 you might want to check out Kohana, which is a PHP5 fork of CodeIgniter and takes advantage of some of PHP5's features.

Phill Sacre
yes I'm using php5. thanks for the suggestions, I'm checking.
artarad
Having used both Kohana and CodeIgniter, I didn't really see a benefit to using one over the other. Other than CodeIgniter has way better documentation.
Jayrox
It's pretty easy to pick up CI, thanks to its nice user guide and forum.
andyk
+6  A: 

Even thou you said lightweight, I suggest you get started with Zend Framework. You don't have to use all the ZF libraries, just go with the basic ones and get acquainted with the ones you think can ease your development process. It's easy to get started as well.

Björn
ain't it so hard or time-consuming to learn? actually i have to deliver the project in 10 days, and i'm scared :(
artarad
+1 ZF is the way to go.
vartec
Ten days are not enough to learn the framework, but in ten days you will not learn any framework. However, if you're in to PHP there will probably be no problem for you to adapt to the ZF lifestyle ;)
Björn
ofcourse it's not enough, but I mean 10 days to learn and use the basic features to satisfy the needs of every basic web application. thanks Bjorn :)
artarad
From my experience 10 days is more then enough to roll out simple application following the quickstart manual.
vartec
wow! energic comment vartec. i'm still checking, thanks.
artarad
A FEW MONTHES LATER: BTW, It takes too long for me to get familiar with ZF :(
artarad
+3  A: 

What do you exactly mean by lightweight?

Well, anyways I'd recommend you reconsider Zend Framework. There is nice quickstart document. As ZF is so complete, you don't loose any time on reinventing the wheel and can roll out new products within days. Also you have to take in account that it's the most popular framework and the only one with support from Zend Technologies. So it's likely that it'll stay on the market. With other you can't really be sure.

vartec
artarad
Well, ZF covers a lot, but there is no need to know *everything* about ZF to create simple application. For simple application you'll need some 5% of ZF.
vartec
+5  A: 

Look into Yii Framework its PHP5 only, relatively new but I believe the authors (who wrote other frameworks before this one) took the best of all worlds and baked it into Yii.

Blaz
wow, nice! http://yiiframework.com/performance/
artarad
Do notice that Yii uses the APC extension to enhance performance, which often is not installed on hosted environments. If it's your server you can install it of course.
Björn
nice note dur to I'm on a shared one.
artarad
+7  A: 

Flourish is a PHP library you can live with, Also Swiftlet is a lightweight new born PHP MVC framework.
Personally I didn't use Swiftlet yet but it looks very promising.

Sepehr Lajevardi
thanks sepehr, could you tell me what's the benefit of a ORM framework over the others?
artarad
Sepehr Lajevardi
Actually ORM is not a necessity for developing simple web applications such as a membership system.
Sepehr Lajevardi
Nice Dog is dead.
Alix Axel
At the time of the answer writing it wasn't, I think.
Sepehr Lajevardi
The answer is now updated.
Sepehr Lajevardi
+2  A: 

I've heard nice things about Kohana, it's supposed to fit the lightweight profile.

Vasil
+1  A: 

PHP Fat-Free Framework will fit your requirements quite well. Recommended for novices and experts alike.

stillstanding
A: 

shameless plug: http://code.google.com/p/php-web-toolkit/. It comes as a starting website - you can browse the sources online just to get a feeling of it in use. It's not OOP, and IMO, OO frameworks will not automatically solve your problems of organizing your code.

Cosmin Apreutesei