Download the PHP package fyre/response without Composer
On this page you can find all versions of the php package fyre/response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fyre/response
More information about fyre/response
Files in fyre/response
Download fyre/response
More information about fyre/response
Files in fyre/response
Please rate this library. Is it a good library?
Informations about the package response
FyreResponse
FyreResponse is a free, open-source immutable HTTP response library for PHP.
Table Of Contents
- Installation
- Basic Usage
- Methods
Installation
Using Composer
In PHP:
Basic Usage
$optionsis an array containing the message options.bodyis a string or StreamInterface representing the message body, and will default to "".headersis an array containing headers to set, and will default to [].protocolVersionis a string representing the protocol version, and will default to "1.1".statusCodeis a number representing the status code, and will default to 200.reasonPhraseis a string representing the reason phrase, and will default to "".
If a reasonPhrase is not provided, the default reason for the status code will be used instead.
Methods
This class extends the Message class.
Get Reason Phrase
Get the response reason phrase.
Get Status Code
Get the status code.
With Status
Set the status code.
$codeis a number representing the status code.$reasonPhraseis a string representing the reason phrase, and will default to "".
If a $reasonPhrase is not provided, the default reason for the status code will be used instead.
All versions of response with dependencies
PHP Build Version
Package Version
The package fyre/response contains the following files
Loading the files please wait ...