{"id":86563,"library":"psr-http-server-middleware","title":"PSR HTTP Server Middleware","description":"Common interface for HTTP server-side middleware.","status":"active","version":"1.0.2","language":"php","source_language":null,"source_url":"https://github.com/php-fig/http-server-middleware","tags":["psr","middleware","http","interface"],"install":[{"cmd":"composer require psr/http-server-middleware","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"MiddlewareInterface","correct":"use Psr\\Http\\Server\\MiddlewareInterface;"}],"quickstart":{"code":"use Psr\\Http\\Server\\MiddlewareInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Psr\\Http\\Server\\RequestHandlerInterface;\n\nclass MyMiddleware implements MiddlewareInterface\n{\n    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): \\Psr\\Http\\Message\\ResponseInterface\n    {\n        return $handler->handle($request);\n    }\n}","lang":"php","description":"Implement a PSR-15 server middleware."},"warnings":[],"env_vars":null,"search_vec":"'common':5 'http':2,8,15 'interfac':6,16 'middlewar':4,12,14 'psr':1,13 'server':3,10 'server-sid':9 'side':11","created_at":"2026-06-19T08:03:58.733179+00:00","updated_at":"2026-06-19T08:03:58.733179+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/php-fig/http-server-middleware","github":"https://github.com/php-fig/http-server-middleware","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}