search

Home  >  Q&A  >  body text

[php] Looking for a php response module (class) for API response

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.

黄舟黄舟2755 days ago919

reply all(2)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-06-10 09:49:23

    Try PhalApi, a lightweight framework for interfaces

    reply
    0
  • 習慣沉默

    習慣沉默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.

    reply
    0
  • Cancelreply