thruster / http-response
Thruster HttpResponse Component
0.2.0
2016-02-12 16:33 UTC
Requires
- php: >=7.0
- thruster/http-message: ^1.1
Requires (Dev)
- phpunit/phpunit: ~5.1
This package is auto-updated.
Last update: 2024-10-14 03:27:59 UTC
README
[] (https://github.com/ThrusterIO/http-response/releases) [] (LICENSE) [] (https://travis-ci.org/ThrusterIO/http-response) [] (https://scrutinizer-ci.com/g/ThrusterIO/http-response) [] (https://scrutinizer-ci.com/g/ThrusterIO/http-response) [] (https://packagist.org/packages/thruster/http-response)
The Thruster HttpResponse Component.
Install
Via Composer
$ composer require thruster/http-response
Usage
use Thruster\Component\HttpResponse\ResponseBuilder; $response = ResponseBuilder::init($response)->withJsonBody($data); $response = ResponseBuilder::init($response)->withJsonBody($data, 'application/vnd.thruster+json');
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
License
Please see License File for more information.