S
S
StrangeAttractor2014-06-13 03:23:29
PHP
StrangeAttractor, 2014-06-13 03:23:29

Which PHP framework to choose for REST services?

I conceived a project here with a complete separation of layers, the web-server part is conceived to be implemented as a set of REST services (no generation of HTML pages, no statics, only JSON/XML methods). Accordingly, it is interesting whether there is a framework tailored specifically for such tasks. So that everything you need (including authorization), nothing superfluous and with a structure sharpened for this.
PHP as a language was chosen in order to be able to deploy to budget shared hosting.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Zelenin, 2014-06-13
@zelenin

yii2
https://github.com/yiisoft/yii2/blob/master/docs/g...

S
Sergey, 2014-06-13
Protko @Fesor

Symfony2 + FOS/Rest + JMS/Serializer + Doctrine. For very simple things, perhaps redundant, but covers all cases. For something small I like to use Silex.
Take a separate look at HTTP Middlewares. They can be installed on any application based on HttpKernel (i.e. Symfony2, Silex, Laravel, etc.)
stackphp.com
Among the middleware, you may be interested in OAuth (for authorization) and CORS. Well, you can make your own completely reusable components.

P
Papa, 2014-06-13
Stifflera @PapaStifflera

Phalcon
docs.phalconphp.com/en/latest/reference/tutorial-r...

I
Insayt, 2014-06-13
@Insayt

Laravel - REST out of the box
See for yourself laravel.ru/docs/v4/controllers#restful

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question