C
C
chemax0072014-10-05 12:14:37
PHP
chemax007, 2014-10-05 12:14:37

What to use when creating ajax service?

Good afternoon.
The question arose of creating a certain api site in php, so that in the future it would be possible to attach to it through applications on android and ios.
As I imagine:
The page, through a set of js methods, receives json generated in php, processes and displays it to the user.
Tell me what you can read, preferably in Russian, and what libraries to use?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alex Chistyakov, 2014-10-05
@alexclear

To implement the logic on the server, the Silex PHP microframework is not bad - it is designed for just such tasks.

A
asdz, 2014-10-05
@asdz

Fat Free fatfreeframework.com/home or more serious php frameworks. But I think you also need to evaluate the choice not only in terms of the ability to handle http requests, but also such typical tasks as authentication, data access, etc.

C
chemax007, 2014-10-05
@chemax007

Probably not correctly expressed. You don't need php frameworks, as there are their own, which have shown good stability. Interested in organizing js events.

B
bromzh, 2014-10-05
@bromzh

On the client side (specifically html pages), it is better to use some kind of "reactive" frameworks: AngularJS, Knockout+mapper plugin, etc. This will save you a huge pile of code for handling button events, a bunch of code needed to update all the data on the page, and so on. It's just that on the client it will be necessary to build some kind of MVC / MVVM architecture that will process data from the server and associate them with various UI elements. Actually, these frameworks are made for this.
Well, this will not affect mobile platforms in any way, the API will remain the same, the features of development for mobile phones will be used.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question