Download the PHP package mhasnainjafri/apitoolkit without Composer
On this page you can find all versions of the php package mhasnainjafri/apitoolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mhasnainjafri/apitoolkit
More information about mhasnainjafri/apitoolkit
Files in mhasnainjafri/apitoolkit
Package apitoolkit
Short Description APIToolkit is a comprehensive Laravel package designed to streamline and enhance API development by providing consistent responses, efficient pagination, robust caching mechanisms, and standardized field definitions with appropriate status codes. Simplify your API development process and ensure a uniform experience for your API consumers with APIToolkit.
License MIT
Homepage https://github.com/mhasnainjafri/apitoolkit
Informations about the package apitoolkit
APITOOLKIT
APITOOLKIT is a comprehensive package for Laravel that provides powerful tools for building queries, handling API responses, and managing caching efficiently.
Installation
You can install the package via composer:
Features
APITOOLKIT provides a variety of features for building and handling API responses efficiently:
- Query Building: Construct queries with filters, sorts, includes, and more.
- API Response Helpers: Standardize API responses.
- Caching: Cache API responses for a specified duration.
- Custom Responses: Standardized methods for success, error, validation, and other types of responses.
Usage
Query Building
APITOOLKIT helps you build complex queries easily.
API Responses
APITOOLKIT offers various methods to handle API responses efficiently.
Success Response
Error Response
Validation Error Response
Not Found Response
Caching
You can cache responses to improve performance and reduce load on your database.
Cached Response
Paginated Cached Response
Clearing Cache
Custom Responses
You can also create custom responses as needed.
Constants
APITOOLKIT provides various HTTP status codes as constants for convenience:
API::SUCCESS
: 200API::CREATED
: 201API::NO_CONTENT
: 204API::BAD_REQUEST
: 400API::UNAUTHORIZED
: 401API::FORBIDDEN
: 403API::NOT_FOUND
: 404API::METHOD_NOT_ALLOWED
: 405API::UNPROCESSABLE_ENTITY
: 422API::INTERNAL_SERVER_ERROR
: 500API::NOT_IMPLEMENTED
: 501API::BAD_GATEWAY
: 502API::SERVICE_UNAVAILABLE
: 503
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue on GitHub.
License
This package is open-sourced software licensed under the MIT license.
All versions of apitoolkit with dependencies
illuminate/database Version ^10.0|^11.0
illuminate/http Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
spatie/laravel-package-tools Version ^1.11