Download the PHP package anhzf/laravel-rest-api without Composer
On this page you can find all versions of the php package anhzf/laravel-rest-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-rest-api
Laravel-RestAPI
Laravel Rest API management
Table of Content
- Feature
- Installation
- JSON Data Schema
- Usage
- More Example
Feature
- Improve your API Response data structure
Installation
API Response JSON data structure
Usage
Methods
- APIResponse::message()
- APIResponse::data()
- APIResponse::statusCode()
- APIResponse::error()
- Send Shortcut
- APIResponse::sendMessage()
- APIResponse::sendData()
- APIResponse::sendStatusCode()
- APIResponse::sendError()
Add Message |
Add Data |
Set HTTP Status Code |
Send Error Response |
It will send response without key in your Json Response
Send Response Shortcut
By adding verb in above listed method, it will be send response like using
Example
All versions of laravel-rest-api with dependencies
PHP Build Version
Package Version
Requires
illuminate/http Version
^8.3
The package anhzf/laravel-rest-api contains the following files
Loading the files please wait ....