{"id":33956016,"url":"https://github.com/phpwebclient/ext-protocol-version","last_synced_at":"2025-12-12T20:16:50.564Z","repository":{"id":56490802,"uuid":"277063556","full_name":"phpwebclient/ext-protocol-version","owner":"phpwebclient","description":"Auto change protocol version extension for PSR-18 HTTP client","archived":false,"fork":false,"pushed_at":"2022-07-22T14:41:16.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-10T10:14:00.975Z","etag":null,"topics":["http-protocol-manipulation","http-protocol-version","php","php-http-client","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phpwebclient.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://www.paypal.me/ddrv","patreon":"ddrv"}},"created_at":"2020-07-04T07:42:38.000Z","updated_at":"2022-07-22T14:39:27.000Z","dependencies_parsed_at":"2022-08-15T19:40:50.053Z","dependency_job_id":null,"html_url":"https://github.com/phpwebclient/ext-protocol-version","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/phpwebclient/ext-protocol-version","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpwebclient%2Fext-protocol-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpwebclient%2Fext-protocol-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpwebclient%2Fext-protocol-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpwebclient%2Fext-protocol-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpwebclient","download_url":"https://codeload.github.com/phpwebclient/ext-protocol-version/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpwebclient%2Fext-protocol-version/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27690696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http-protocol-manipulation","http-protocol-version","php","php-http-client","php-library"],"created_at":"2025-12-12T20:16:49.709Z","updated_at":"2025-12-12T20:16:50.558Z","avatar_url":"https://github.com/phpwebclient.png","language":"PHP","readme":"[![Latest Stable Version](https://img.shields.io/packagist/v/webclient/ext-protocol-version.svg?style=flat-square)](https://packagist.org/packages/webclient/ext-protocol-version)\n[![Total Downloads](https://img.shields.io/packagist/dt/webclient/ext-protocol-version.svg?style=flat-square)](https://packagist.org/packages/webclient/ext-protocol-version/stats)\n[![License](https://img.shields.io/packagist/l/webclient/ext-protocol-version.svg?style=flat-square)](https://github.com/phpwebclient/ext-protocol-version/blob/master/LICENSE)\n[![PHP](https://img.shields.io/packagist/php-v/webclient/ext-protocol-version.svg?style=flat-square)](https://php.net)\n\n# webclient/ext-protocol-version\n\nAuto change protocol version extension for PSR-18 HTTP client.\n\n# Install\n\nInstall this package and your favorite [psr-18 implementation](https://packagist.org/providers/psr/http-client-implementation).\n\n```bash\ncomposer require webclient/ext-protocol-version:^2.0\n```\n\n# Using\n\n```php\n\u003c?php\n\nuse Webclient\\Extension\\ProtocolVersion\\ProtocolClientDecorator;\nuse Psr\\Http\\Client\\ClientInterface;\nuse Psr\\Http\\Message\\RequestInterface;\n\n/** \n * @var ClientInterface $client Your PSR-18 HTTP Client\n */\n$http = new ProtocolClientDecorator($client);\n\n/** @var RequestInterface $request */\n$response = $http-\u003esendRequest($request);\n```\n\nIf server returns a 505 error, this client will repeat the request with the protocol version specified in the server response.\n","funding_links":["https://www.paypal.me/ddrv","https://patreon.com/ddrv"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpwebclient%2Fext-protocol-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpwebclient%2Fext-protocol-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpwebclient%2Fext-protocol-version/lists"}