I am developing a JS web application with requirejs, backbone.js, underscore.js and jquery.
At work, my server is the jboss application server.
My views are templates (static html files) that are served by the tomcat jboss part and integrated into the interface using the underscore.js template.
Therefore, I do not need to generate VIEW on the server side.
With the exception of the aforementioned static file provided by tomcat (html and js files), I need a jboss backend only to retrieve data (session beans, which receive data through jpa from the database and return it as json).
Now I also want to run the web application at home in my free time.
In the interface area I will use the same library stack, but in the backend I want to use php.
Php on the backend is cheap, you can easily find a good, inexpensive php + mysql provider.
On the backend, I am looking for a solution that usually looks like my work environment: I want php to only give me part of the model, only data from the database. All other parts (viewing templates, js files) come from the apache static file service.
And I want the php lightweight structure to help me achieve this (NO MVC). I already spent a lot of time finding a solution, but was not really successful.
I have been working with the zend platform for a long time:
I know this structure can be used in a non-mvc way. I have written several examples that use it only this way. But I'm not happy with the zend. He is too big and slow.
My question is that backbone.js web application developers have a php server:
What backend solution do you use to get models and collections from the server. What experience did you have with him?
UPDATE:
Thank you for your responses. Now I have found a promising microframe project called "slimphp".
source share