Download the PHP package decodeblock/api-utility without Composer
On this page you can find all versions of the php package decodeblock/api-utility. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download decodeblock/api-utility
More information about decodeblock/api-utility
Files in decodeblock/api-utility
Download decodeblock/api-utility
More information about decodeblock/api-utility
Files in decodeblock/api-utility
Vendor decodeblock
Package api-utility
Short Description Helper functions for api development with laravel
License MIT
Homepage https://github.com/decodeblock/api-utility
Package api-utility
Short Description Helper functions for api development with laravel
License MIT
Homepage https://github.com/decodeblock/api-utility
Please rate this library. Is it a good library?
Informations about the package api-utility
API Utility
A Laravel package providing helper functions for streamlined API development. Simplify response handling and enhance the structure of your APIs.
Installation
Install the package via Composer:
Usage
Example
Using the ApiResponder
trait for handling JSON responses:
The ApiResponder
trait provides methods like:
success($message, $code, $data, $metadata = null)
: For successful responses.error($message, $code, $data, $metadata = null)
: For error responses.
Testing
Run tests using:
Changelog
Detailed changes for each release are documented in the CHANGELOG.
Contributing
We welcome contributions! Please see the CONTRIBUTING guide for details.
Credits
License
This package is licensed under the MIT License.
All versions of api-utility with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4||^8.3
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16
The package decodeblock/api-utility contains the following files
Loading the files please wait ....