Download the PHP package sharadkashyap/php-api-response-toolkit without Composer
On this page you can find all versions of the php package sharadkashyap/php-api-response-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sharadkashyap/php-api-response-toolkit
More information about sharadkashyap/php-api-response-toolkit
Files in sharadkashyap/php-api-response-toolkit
Package php-api-response-toolkit
Short Description A lightweight, framework-independent PHP toolkit for consistent JSON API responses and error handling.
License MIT
Homepage https://github.com/sharadkashyapdev/php-api-response-toolkit
Informations about the package php-api-response-toolkit
PHP API Response Toolkit
A lightweight, framework-independent PHP library for creating consistent and standardized JSON API responses.
Purpose
Provide a simple, reusable, and framework-independent way to generate consistent JSON API responses across PHP applications.
The goal of this library is to remove repetitive response formatting logic and provide a clean foundation for API development.
Features
- Standard success responses
- Standard error responses
- Validation error responses
- HTTP status helpers
- Framework independent
- PSR-4 autoloading
- Lightweight and reusable
- Consistent JSON output structure
Requirements
- PHP 8.1+
Installation
Install using Composer:
Usage
Success Response
Example output:
Error Response
Development
Clone the repository:
Install dependencies:
Quality Checks
Run unit tests:
Run static analysis:
Check code formatting:
Project Structure
Contributing
Contributions are welcome.
Please read:
- CONTRIBUTING.md
before submitting a pull request.
Security
For security-related issues, please read:
- SECURITY.md
Do not report security vulnerabilities through public issues.
Project Status
This project is currently under active development.
The initial public release focuses on providing a lightweight, framework-independent API response toolkit for PHP.
License
MIT License