Download the PHP package oktorino/midresapi without Composer
On this page you can find all versions of the php package oktorino/midresapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download oktorino/midresapi
More information about oktorino/midresapi
Files in oktorino/midresapi
Download oktorino/midresapi
More information about oktorino/midresapi
Files in oktorino/midresapi
Vendor oktorino
Package midresapi
Short Description Return consistency json structure, handling exception response, handling validation exception
License MIT
Package midresapi
Short Description Return consistency json structure, handling exception response, handling validation exception
License MIT
Please rate this library. Is it a good library?
Informations about the package midresapi
Midres api , return response with consistency structure in json,
- simple use.
- simple return models,collecton and also fractal transofrmer
- Handling exception.
- Handling validation exception.
Installation
Requires :
- PHP 7.2 * or latest
- Laravel 7,8, or latest
Installation Midresapi in Composer:
Register to MiddlewareRoute
Configure in kernel.php, and place at middllewareRoute :
then call this "midresapi" on your api routes. example in api.php :
Usage & Example
return success message
response :
return with data
return model;
response :
return collection;
response :
that also support return fractal in tranformer
Failed Response
-
reponse mistakes
- Mistake on purpose ex :
- Return failed validation
License
midrespi createb by Tuah Oktorino.
All versions of midresapi with dependencies
PHP Build Version
Package Version
No informations.
The package oktorino/midresapi contains the following files
Loading the files please wait ....