borisnedovis / api-response
Api Response
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/borisnedovis/api-response
This package is auto-updated.
Last update: 2025-12-06 07:12:46 UTC
README
Install
To install through Composer, by run the following command:
composer require borisnedovis/api-response
And add provider in app.php:
BorisNedovis\ApiResponse\Providers\ApiResponseServiceProvider::class
Use:
- Required parameter $data
return response()->api($this->data, $this->errors, $this->statusCode);
Result:
{"data":{...},"errors":[],"status":200}