H
H
hime22015-11-01 22:40:13
CMS
hime2, 2015-11-01 22:40:13

Which framework is best for this situation?

The question arose on what to write the admin panel.
I can't decide what to choose symfony or laravel.
All the functionality will be sawn in js, the frame is only required to work with the database and partial validation, caching, session work.
For the cache, I think to take radis or mamcached, special thanks for the advice. I think more radishes.
If it is possible to work with a websocket, then it will be fine, and if not, then ajax.
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-11-01
@hime2

I can't decide what to choose symfony or laravel.

For CRUD, if there is absolutely no business logic on the server, it's better to take laravel, you'll do it faster.
And also providing a normal platform for organizing an HTTP API, but these are trifles, yes.
redis is more versatile, but more complex. Basically stupidly as key-value the difference is not essential.
ajax (or XmlHttpRequest) is simply the ability to make HTTP requests from the browser. That is, it is supported by default by all existing HTTP-oriented frameworks.
As for websockets - here you still have to make a separate application, you can puff but cheaper and easier to take node.js + socket-io. Moreover, it is not necessary to write everything in node.js. Your apishka can be implemented in PHP, and through the message queue (redis can pub / sub and mq) ask another application (simple on node.js + socket.io) to send messages to users.
For authorization in this case, I recommend JWT, since then node.js will not need to knock on the php application to confirm authorization. It is enough to check the signature of the token and get the data from it. Again, a bunch of ready-made solutions for both symfony and laravel and socket-io.
Well, yes, if you really need a server only as a client for the database + validation - consider using tools like loopback.io and other things.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question