playkids / api-response
Simple Api Response Library
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/playkids/api-response
Requires
- php: >=7.4
- illuminate/http: ^9.43
- symfony/http-foundation: ^6.2
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2025-12-24 02:37:19 UTC
README
This is a simple project with the proposition to be a lib for apis and easy to develop. Principal use in your Laravel Project
To use in your project:
First needed to install the library, run follow command:
composer require playkids/simple-response
To use in your Laravel Project, follow steps:
on App\Http\Controllers\Controller;
Insert in your constructor this code
protected $response;
public function __construct()
{
$this->response = new ApiResponse();
}
After this All Your controllers with extends Controller can access ApiResponse methods
class ExampleController extends Controller
{
public function example()
{
return $this->response->successResponse('data');
}
}