{"id":25870867,"url":"https://github.com/seeren/http","last_synced_at":"2026-05-13T00:01:49.810Z","repository":{"id":62541818,"uuid":"71177183","full_name":"seeren/http","owner":"seeren","description":"🌐 Http client and messages","archived":false,"fork":false,"pushed_at":"2022-01-07T20:19:43.000Z","size":253,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-17T23:59:52.877Z","etag":null,"topics":["client","psr-18","psr-7","request","response"],"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/seeren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-17T20:13:40.000Z","updated_at":"2022-01-07T20:19:46.000Z","dependencies_parsed_at":"2022-11-02T15:45:30.132Z","dependency_job_id":null,"html_url":"https://github.com/seeren/http","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/seeren/http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seeren%2Fhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seeren%2Fhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seeren%2Fhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seeren%2Fhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seeren","download_url":"https://codeload.github.com/seeren/http/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seeren%2Fhttp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32961785,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["client","psr-18","psr-7","request","response"],"created_at":"2025-03-02T06:33:35.028Z","updated_at":"2026-05-13T00:01:49.776Z","avatar_url":"https://github.com/seeren.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Seeren\\\\Http\n\n[![Build](https://app.travis-ci.com/seeren/http.svg?branch=master)](https://app.travis-ci.com/seeren/http)\n[![Require](https://poser.pugx.org/seeren/http/require/php)](https://packagist.org/packages/seeren/http)\n[![Coverage](https://coveralls.io/repos/github/seeren/error/badge.svg?branch=master)](https://coveralls.io/github/seeren/http?branch=master)\n[![Download](https://img.shields.io/packagist/dt/seeren/http.svg)](https://packagist.org/packages/seeren/http/stats)\n[![Codacy](https://app.codacy.com/project/badge/Grade/baea2fa9ba704a80a6b693921af25cbd)](https://www.codacy.com/gh/seeren/http/dashboard?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=seeren/http\u0026utm_campaign=Badge_Grade)\n[![Version](https://img.shields.io/packagist/v/seeren/http.svg)](https://packagist.org/packages/seeren/http)\n\nManage http messages\n\n* * *\n\n## Installation\n\nSeeren\\\\Http is a [PSR-7 http messages interfaces](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message.md)\nand a  [PSR-18 http client interfaces](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-18-http-client-meta.md)\nimplementation\n\n```bash\ncomposer require seeren/http\n```\n\n* * *\n\n## Seeren\\\\Http\\\\Client\n\nRetrieve response from sending request\n\n```php\nuse Seeren\\Http\\Client\\Client;\nuse Seeren\\Http\\Uri\\Uri;\n\n$client = new Client('GET', new Uri(\n    'https',\n    'packagist.org',\n    'packages/seeren/http.json'\n));\necho $client-\u003esendRequest()-\u003egetBody();\n```\n\n* * *\n\n## Seeren\\\\Http\\\\Uri\n\nUri representation\n\n```php\nuse Seeren\\Http\\Uri\\Uri;\n\n$uri = new Uri('http', 'host');\n```\n\nHandle incoming request Uri\n\n```php\nuse Seeren\\Http\\Uri\\RequestUri;\n\n$uri = new RequestUri();\n```\n\n* * *\n\n## Seeren\\\\Http\\\\Stream\n\nHandle resource with open mode\n\n```php\nuse Seeren\\Http\\Stream\\Stream;\n\necho new Stream('some-url', Stream::MODE_R);\n```\n\nHandle input for all http methods\n\n```php\nuse Seeren\\Http\\Stream\\RequestStream;\n\necho new RequestStream();\n```\n\nHandle output\n\n```php\nuse Seeren\\Http\\Stream\\ResponseStream;\n\n$stream = new ResponseStream();\n$stream-\u003ewrite('Client output');\n```\n\n* * *\n\n## Seeren\\\\Http\\\\Request\\\\Request\n\nServer Request representation with json or form input body\n\n```php\nuse Seeren\\Http\\Request\\Request;\nuse Seeren\\Http\\Stream\\RequestStream;\nuse Seeren\\Http\\Uri\\RequestUri;\n\n$request = new Request(\n    new RequestStream(),\n    new RequestUri()\n);\n```\n\n* * *\n\n## Seeren\\\\Http\\\\Response\\\\Response\n\nServer response\n\n```php\nuse Seeren\\Http\\Response\\Response;\nuse Seeren\\Http\\Stream\\ResponseStream;\n\n$response = new Response(\n    new ResponseStream()\n);\n```\n\n* * *\n\n## License\n\nThis project is licensed under the [MIT](./LICENSE) License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseeren%2Fhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseeren%2Fhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseeren%2Fhttp/lists"}