R
R
Roman2019-09-04 11:51:05
PHP
Roman, 2019-09-04 11:51:05

What PHP micro-framework to take for a simple REST API with authorization, and not from the "big three"?

For three months I didn’t deal with Laravel, now I needed to quickly raise the REST API - I climbed up and realized that I had already forgotten everything in this Laravel.
I would do it on Express.js, but heavy database queries are expected there, and in these cases, the node seems to be not recommended.
Please advise some good REST API microframework that would be so simple that you won't forget it in 3 months :D
Not just Lumen or Slim, but something really simple. With good documentation and cookbook :)
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

10 answer(s)
S
Sergey Sokolov, 2019-09-04
@procode

Maybe in the Swagger editor , throw in API specs and automatically generate a server and a client using them in any of the proposed languages ​​/ frameworks?
For example, a server under the same Lumen, Slim, Silex, Symfony, Node.js

M
Maksim Fedorov, 2019-09-04
@Maksclub

Symfony 4 out of the box is a microframework, seriously

O
oSSmaN, 2019-09-04
@oSSmaN

Try Phalcon.
https://phalcon.io/

X
xfg, 2019-09-04
@xfg

I would do it on Express.js, but heavy database queries are expected there, and in these cases, the node seems not to be recommended.

Do it. You misunderstand how node.js works. Conversely, if you have heavy queries, then node.js is the way to go . I/O in node.js is non-blocking, which means that instead of waiting for a response from the network or file system, you can serve other clients.
It is not recommended to use node.js for complex mathematical / physical and similar calculations that are demanding on processor time, which will accordingly block the process while the processor is busy calculating this task. Which is never about the web at all. And even then, it is possible to split such a task and execute it in a few ticks, or even in a child process.

E
Eugene Pedya, 2019-09-12
@fpinger

Slim Framework

H
hesy, 2019-09-04
@hesy

Silex , but it will no longer be supported.

A
Alexander Filippenko, 2019-09-05
@alexfilus

There is also Swoft
Not one of the big three, and requires Swoole to work, but very fast, and for an author who wrote in Laravel, working with the database will look familiar.

A
Andreas St, 2019-09-05
@staraday

Koseven - former kohan

A
Alexander Solovey, 2019-09-12
@naghtigall

Codeigniter - https://codeigniter.com

M
md500, 2021-02-04
@md500

If very simple, then a mini framework . If it's not too late :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question