kipchak/middleware-error

An Error Handling Middleware for the Kipchak API Development Kit (ADK)

Installs: 39

Dependents: 1

Suggesters: 0

Security: 0

Type:middleware

pkg:composer/kipchak/middleware-error

1.1 2026-01-01 04:42 UTC

This package is auto-updated.

Last update: 2026-01-06 11:37:01 UTC


README

This Middleware package provides a standardized way to handle and log errors and exceptions in Kipchak APIs.

Composer Package

kipchak/middleware-error

How to use it?

Install it via composer: composer require kipchak/middleware-error.

Then just ensure you have appropriate settings configured in kipchak.api.php config file in the root of your project.

For a sample, please see: https://1x.ax/mamluk/kipchak/starter/~files/master/config/kipchak.api.php.

What is a Kipchak Middleware?

Kipchak Middleware is a standard PHP PSR-15 middleware.

Middleware is a component that sits between the request and response of a web application, allowing for interception and modification of the request and response data. In the context of Kipchak, middleware can be used to handle errors, authentication, and other cross-cutting concerns that are common across one or more API endpoints.