Download the PHP package oihana/php-middleware without Composer

On this page you can find all versions of the php package oihana/php-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-middleware

Oihana PHP Middleware

Oihana PHP Middleware

Composable PHP HTTP middleware helpers.

Part of the Oihana PHP ecosystem, this package ships procedural helpers for HTTP security headers, CORS, CSRF, request-id propagation, maintenance mode, fixed-window rate limiting, observability, content negotiation, distributed tracing (W3C Trace Context), RFC 9457 Problem Details, webhook signature verification, request-defense guards, HTTP caching & conditional requests, and pagination headers โ€” PSR-7 compatible, zero magic strings.

Latest Version Total Downloads

๐Ÿ“š Documentation

Full API reference (generated with phpDocumentor): https://bcommebois.github.io/oihana-php-middleware

User guides (FR + EN) live under wiki/.

๐Ÿ“ฆ Installation

Requires PHP 8.4+. Install via Composer:

โœจ What you can do

Security headers

CORS

CSRF

Request ID

Maintenance mode

Rate limiting

Observability

Content negotiation

Distributed tracing

Problem Details

Webhook signature verification

Request defense

HTTP caching & conditional requests

Pagination

Under the hood

โœ… Running tests

Run all tests:

Measure coverage (requires Xdebug or PCOV):

See CONTRIBUTING.md for the full testing & coverage workflow.

๐Ÿ› ๏ธ Generate the documentation

๐Ÿงพ License

Licensed under the Mozilla Public License 2.0 (MPLโ€‘2.0).

๐Ÿ‘ค About the author

๐Ÿ”— Related packages

Package Description
oihana/php-http Composable PHP HTTP primitives (client IP detection, signed URLs, cookies, content negotiation, โ€ฆ) consumed by this library.
oihana/php-enums Typed HTTP constants (HttpHeader, HttpMethod, HttpStatusCode, AuthScheme, โ€ฆ).
oihana/php-memcached Production-grade MemcachedRateLimitStore implementing this package's RateLimitStore interface.

All versions of php-middleware with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
psr/http-message Version ^2.0
oihana/php-enums Version dev-main
oihana/php-http Version dev-main
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package oihana/php-middleware contains the following files

Loading the files please wait ...