[php] Looking for a php response module (class) for API response
黄舟2017-06-10 09:47:23
0
2
915
Is there a more general response module in php, which can be installed with composer and used to make restful responses, such as setting response headers, response status codes, returning json data, etc. Please recommend.
Try PhalApi, a lightweight framework for interfaces
symfony/http-foundation
Basically no dependencies. Contains Request, Response and Session.
Just like its package name. This is an http basic package. The laravel framework also uses it. Produced by a major manufacturer, trustworthy.