stack/callable-http-kernel

HttpKernelInterface implementation based on callables.

Maintainers

👁 igorw

Package info

github.com/stackphp/CallableHttpKernel

pkg:composer/stack/callable-http-kernel

Statistics

Installs: 40 055

Dependents: 23

Suggesters: 0

Stars: 24

Open Issues: 4

v1.0.1 2016-06-18 18:53 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT a7802f842e46c175bdc3645b3f0768c5bb9c4b23

  • Igor Wiedler <igor.woop@wiedler.ch>

stack

This package is not auto-updated.

Last update: 2026-06-27 21:35:51 UTC


README

HttpKernelInterface implementation based on callables.

It's mostly useful to test stack middlewares, and to mock the HttpKernelInterface on the fly.

Example

use Stack\CallableHttpKernel;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

$app = new CallableHttpKernel(function (Request $request) {
 return new Response('Hello World!');
});