views:

47

answers:

2

Hi

We have developed a J2ME application with PHP as backend hence our frontend is not HTML. We are handling HTTP request from mobile phone and writing data in the database and sending mail and data to mobile as well, which all are done by PHP and it is working fine. But our PHP server code is not modular hence it is not scalable. So I decided to use some PHP frameworks. All these frameworks supports MVC hence I guess VIEW part does not matter.

I want to know the PHP framework which is similar to Java's Spring. I want to use ORM techniques also in my code. Is it possible? Is there any framework is available.?

A: 

A view can mean different things, for example in Django (python) it is code that executes anything and then returns to a template whereas in cakephp it is basically an HTML layout template with some PHP sprinkled in (which would be a "template" in Django.. I am just mentioning this to illustrate that different frameworks call things differently so I'm not sure what you are looking for exactly... if you just need a templating system to output php into HTML you may not need a full framework

Rick
Actually output to mobile phone is done.We had our own format to send the data to mobile phone, we are pretty ok with that mechanism. We have no business with HTML. I need the framework to use OO concept in my code. For example handler classes of each different requests are mentioned in XML file then when the request comes from mobile phone then i need to get the class from XML file and call the appropriate class to further processing.In Java spring, I guess this kind of API are available. So I am looking for those kind of framework in PHP. If u give some idea it would be really helpful to me.
Ravi
A: 

you should look at: Zend framework (http://framework.zend.com/) Yii (http://www.yiiframework.com/)

imho those are quite nice frameworks(you may also check symfony 2, but its not stable).

about ORM part, you can look at this post http://stackoverflow.com/questions/108699/good-php-orm-library

"But our PHP server code is not modular hence it is not scalable." sounds quite.... strange.

nimmen