Download the PHP package hafizmmoaz/laravel-rest-api without Composer
On this page you can find all versions of the php package hafizmmoaz/laravel-rest-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hafizmmoaz/laravel-rest-api
More information about hafizmmoaz/laravel-rest-api
Files in hafizmmoaz/laravel-rest-api
Download hafizmmoaz/laravel-rest-api
More information about hafizmmoaz/laravel-rest-api
Files in hafizmmoaz/laravel-rest-api
Vendor hafizmmoaz
Package laravel-rest-api
Short Description A minimal, reusable REST API toolkit for Laravel: consistent JSON responses, a typed exception hierarchy, and base API model/controller.
License MIT
Package laravel-rest-api
Short Description A minimal, reusable REST API toolkit for Laravel: consistent JSON responses, a typed exception hierarchy, and base API model/controller.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-rest-api
hafizmmoaz/laravel-rest-api
A minimal, reusable REST API toolkit for Laravel.
Namespace: HafizMMoaz\RestApi
Provides:
ApiResponse—ApiResponse::success($data, $message)/ApiResponse::error($message, $status, $code, $details)for consistent JSON envelopes.- A typed exception hierarchy under
HafizMMoaz\RestApi\Exceptions—ApiException(base) plusResourceNotFoundException,RelatedResourceNotFoundException,ValidationException,UnauthorizedException,UnauthenticationException. Each carries an HTTP status code and renders to a JSON error response. ApiModel/ApiController— thin base classes to group API resources/endpoints.
Installation
The service provider HafizMMoaz\RestApi\Providers\ApiServiceProvider is
auto-discovered. It registers a renderer so any thrown ApiException is
returned as its JSON error response automatically.
Usage
License
MIT — see LICENSE.
All versions of laravel-rest-api with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.0
The package hafizmmoaz/laravel-rest-api contains the following files
Loading the files please wait ...