PHP framework for building a CMS, session and REST
I'm working on a CMS for some of our projects, but would like to ease the work a bit by using a framework. This is what I need from a framework:
- A framework that implements basic things like session management for me. Is there one?
- A framework that supports REST. Is there one?
- A framework that doesn't 开发者_JAVA百科cause my CMS to break when the framework is upgraded. Is this something that I have to implement myself or can the framework help me.
- A framework that's very object oriented. Am I right assuming this is a good thing?
The Zend Framework is allways a good choice. http://framework.zend.com/
Or you could go with CakePHP if you want it a bit more Rails like (do it the framework wants you to do it and you have to configure/write less to achive the same)
Symfony is a nice framework that works well, in my experience, for custom CMS work. It's well integrated with the Doctrine ORM library, and the combo simplifies solutions to a lot of CMS problems. It also provides a nice set of feature for building REST interfaces.
Personally, I don't like how opinionated Symfony can be, so I use it sparingly (but often, for CMSy things where ActiveRecord doesn't seem to be an obstacle). For more complex problem domains, I prefer the Zend Framework, which sod recommends in his answer. It's very solid, provides a lot of great functionality, and it's easy to use as much or as little as you like. It provides no "model" layer, by design. That's a Good Thing if you're not buildng yet-another-cms/blog/etc
Look at symfony. For REST thing there are even generators: http://www.symfony-project.org/plugins/sfDoctrineRestGeneratorPlugin and http://www.symfony-project.org/plugins/ckWebServicePlugin/1_5_0
精彩评论