R
R
romajke2019-01-24 21:58:11
PHP
romajke, 2019-01-24 21:58:11

What tools to use for writing API in PHP?

There was a desire to learn in SPA. React was chosen as the frontend. There, even more or less the principle of operation is clear.
But with the backend there was a small stupor. I'm pretty good at yii2, and I'm familiar with its API implementation tools. I know that Laravel also has tools for creating APIs. But the project that I want to implement (training) is quite simple and dragging the whole framework somehow, in my opinion, is not advisable.
But at the same time, the framework has a lot of nice features that make work easier, which will need to be written manually if you completely abandon the use of the framework.
Actually what to do in this situation? Maybe there are ready-made PHP libraries for writing API?
Or is it still possible to use a framework, even if it is an acceptable solution for solving a meager task?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-01-24
@R0dger

In yii2, you can file a la microframework. those. no need to create SIMPLE and especially advance.
We have both Yii2 and Slim in our project. But I would still write on what I know better.
PS that's when you feel that your solution is not optimal, and will sag in performance, then start thinking, and optimizing in advance is not the best option!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question