Download the PHP package ibrahimhalilucan/response-builder without Composer
On this page you can find all versions of the php package ibrahimhalilucan/response-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ibrahimhalilucan/response-builder
More information about ibrahimhalilucan/response-builder
Files in ibrahimhalilucan/response-builder
Package response-builder
Short Description Laravel API Response Builder
License MIT
Informations about the package response-builder
Response Builder for Laravel API
ResponseBuilder is Laravel's helper designed to build nice, normalized and easy to consume REST API JSON responses.
Requirement
Laravel >= 5.6
Php >= 7.1
Installation
You can install the package via composer:
Exposed Methods
success
- Parameter
null|mixed $data
- Return
return \IbrahimHalilUcan\ResponseBuilder\ResponseBuilder
error
- Parameter
null|mixed $data
- Return
return \IbrahimHalilUcan\ResponseBuilder\ResponseBuilder
message
- Parameter
string $message
- Return
@return \IbrahimHalilUcan\ResponseBuilder\ResponseBuilder
httpHeaders
- Parameter
array $httpHeaders
- Return
@return \IbrahimHalilUcan\ResponseBuilder\ResponseBuilder
httpStatusCode
- Parameter
int $httpStatusCode
- Return
@return \IbrahimHalilUcan\ResponseBuilder\ResponseBuilder
append
- Parameter
array $data
- Return
@return \IbrahimHalilUcan\ResponseBuilder\ResponseBuilder
build
- Return
@return \Illuminate\Http\JsonResponse
Usage
Example 1
See response below:
Example 2
See response below:
Example 3
See response below:
Example 4
See response below:
Example 5
See response below:
Example 6
See response below:
Example 7
See response below:
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Any ideas are welcome. Feel free to submit any issues or pull requests. Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.