PSR-15 Middleware in Minutes
Features PSR-15 MiddlewareCreate middleware applications, using as many layers as you want, and the architecture your project needs.
PSR-7 HTTP MessagesBuilt to consume PSR-7!
RoutingRoute requests to middleware using the routing library of your choice.
Get Started Now!Installation is only a Composer command away!
$ composer create-project zendframework/zend-expressive-skeleton expressive
Expressive provides interfaces for routing and templating, letting you choose what to use, and how you want to implement it.
Our unique installer allows you to select your choices when starting your project!
{: .center-block }
Learn More{: .btn .btn-lg .btn-primary}
Applications, SimplifiedWrite middleware:
$pathMiddleware = function (
ServerRequestInterface $request,
RequestHandlerInterface $handler
) {
$uri = $request->getUri();
$path = $uri->getPath();
return new TextResponse('You visited ' . $path, 200, ['X-Path' => $path]);
};
And add it to an application:
$app->get('/path', $pathMiddleware);
Learn More{: .btn .btn-lg .btn-primary}
Learn moreOr use the sidebar menu to navigate to the section you're interested in.
SupportFound a mistake or want to contribute to the documentation? Edit this page on GitHub!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4