Download the PHP package maplephp/emitron without Composer
On this page you can find all versions of the php package maplephp/emitron. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maplephp/emitron
More information about maplephp/emitron
Files in maplephp/emitron
Package emitron
Short Description MaplePHP Emitron is lightweight PSR-15 kernel and middleware engine that follows PSR conventions with built-in emitter, kernel, and middlewares for clean, consistent request handling.
License Apache-2.0
Homepage https://wazabii.se
Informations about the package emitron
MaplePHP Emitron
Emitron is a modern PSR-based middleware and kernel library designed to handle every step of the HTTP lifecycle, from incoming request to emitted response. It’s built for developers who want clean architecture, predictable behavior, and full control without having to reinvent the wheel.
Out of the box, Emitron provides a complete runtime foundation that follows best practices across PSR-7, PSR-11, and PSR-15. It includes a configurable middleware pipeline, an emitter that handles headers and body output, and a kernel that automatically boots your container, initializes requests, responses, streams, and emits the final output.
Whether you’re building your own framework, an HTTP microservice, or a CLI-driven application, Emitron gives you a consistent, extensible core that plays well with any PSR-compliant ecosystem — simple when you need it, powerful when you don’t.
Features
- Fully PSR-15 compliant middleware dispatcher
- Works with any PSR-7 request and response library
- Lightweight and framework-agnostic
- Supports automatic bootstrapping via the
Kernel - Built-in middlewares for common HTTP tasks (output buffering, compression, content length, HEAD requests, etc.)
- Compatible with any PSR-11 container
Installation
Middleware Example
Emitron includes a robust request handler that executes PSR-15 middlewares in sequence, returning a fully PSR-7 compliant response.
Each middleware conforms to Psr\Http\Server\MiddlewareInterface, allowing you to plug in your own or third-party middlewares with no additional setup.
Kernel and Emitter
Emitron’s Kernel provides an all-in-one entry point for bootstrapping and executing your application.
It automatically initializes the request, response, stream, container, and middlewares, following PSR conventions.
The Kernel takes three arguments:
⚙️ Custom Configuration
Emitron supports custom configuration files.
Provide a PHP file that returns an array, and Emitron will pass it to the PSR container under the key 'configuration'.
Example config/app.php:
All versions of emitron with dependencies
psr/http-server-middleware Version ^1.0
maplephp/http Version ^2.0
maplephp/container Version ^2.0