{"id":94325,"library":"php-http-plugins","title":"PHP-HTTP Plugins","description":"Plugins for HTTPlug, providing middleware for HTTP clients.","status":"active","version":"1.2.0","language":"php","source_language":null,"source_url":"https://github.com/php-http/plugins","tags":["http-client","plugins","middleware","httplug"],"install":[{"cmd":"composer require php-http/plugins","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"PluginClient","correct":"use Http\\Client\\Plugin\\PluginClient;"}],"quickstart":{"code":"use Http\\Client\\Plugin\\PluginClient;\nuse Http\\Client\\Plugin\\Plugin\\ContentLengthPlugin;\nuse Http\\Message\\MessageFactory\\GuzzleMessageFactory;\n\n$pluginClient = new PluginClient(\n    new GuzzleHttp\\Client(),\n    [new ContentLengthPlugin()]\n);\n$response = $pluginClient->sendRequest(new GuzzleHttp\\Psr7\\Request('GET', 'https://example.com'));","lang":"php","description":"Create a plugin client with a content length plugin."},"warnings":[{"fix":"Install php-http/guzzle6-adapter or similar.","message":"Requires an HTTP client adapter (e.g., Guzzle 6+).","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'client':12,15 'http':3,11,14 'http-client':13 'httplug':7,18 'middlewar':9,17 'php':2 'php-http':1 'plugin':4,5,16 'provid':8","created_at":"2026-06-19T10:04:35.705140+00:00","updated_at":"2026-06-19T10:04:35.705140+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":"http://httplug.io","github":"https://github.com/php-http/plugins","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-client","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}}