kipchak/middleware-subashi

A WAF for the Kipchak API Development Kit (ADK)

Installs: 47

Dependents: 1

Suggesters: 0

Security: 0

Type:middleware

pkg:composer/kipchak/middleware-subashi

1.2 2026-01-03 08:42 UTC

This package is auto-updated.

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


README

This Middleware package adds WAF capabilities to your Kipchak API.

The name is inspired by the Arabic word "Subashi" which means "shield" or "protection", reflecting the purpose of the middleware to protect your API from malicious attacks.

It's actually taken from the Ottoman Turkish word subaşı, which was the title given to the police chief of a city / town in the Ottoman Empire.

Composer Package

kipchak/middleware-subashi

How to use it?

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

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

For a sample, please see: https://1x.ax/mamluk/kipchak/starter/~files/master/config/kipchak.subashi.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.