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.
習慣沉默2017-06-10 09:49:23
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.