{"id":26664772,"url":"https://github.com/dspacelabs/http-message","last_synced_at":"2025-03-25T16:38:31.143Z","repository":{"id":56972898,"uuid":"94653222","full_name":"dSpaceLabs/http-message","owner":"dSpaceLabs","description":"Simple PSR-7 Implementation","archived":false,"fork":false,"pushed_at":"2017-06-27T03:35:22.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T07:48:31.058Z","etag":null,"topics":["http-server","php","psr-7"],"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/dSpaceLabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-06-17T22:49:29.000Z","updated_at":"2017-06-18T18:09:45.000Z","dependencies_parsed_at":"2022-08-21T10:20:32.834Z","dependency_job_id":null,"html_url":"https://github.com/dSpaceLabs/http-message","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dSpaceLabs%2Fhttp-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dSpaceLabs%2Fhttp-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dSpaceLabs%2Fhttp-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dSpaceLabs%2Fhttp-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dSpaceLabs","download_url":"https://codeload.github.com/dSpaceLabs/http-message/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245501584,"owners_count":20625807,"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","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-server","php","psr-7"],"created_at":"2025-03-25T16:38:30.573Z","updated_at":"2025-03-25T16:38:31.128Z","avatar_url":"https://github.com/dSpaceLabs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"dspacelabs/http-message [![Build Status](https://travis-ci.org/dSpaceLabs/http-message.svg?branch=master)](https://travis-ci.org/dSpaceLabs/http-message)\n=======================\n\nThis is a simple, very basic implementation of the PSR-7 standard. This library\ndoes not come with a client and only deals with the messages.\n\n## Installation\n\n```bash\ncomposer require dspacelabs/http-message\n```\n\n## Examples\n\n### Creating URIs\n\n```php\nuse Dspacelabs\\Component\\Http\\Message\\Uri;\n\n$uri = (new Uri())\n    -\u003ewithScheme('http')\n    -\u003ewithHost('www.example.com');\n```\n\nIf you want something less verbose, you can also pass in the URL when creating\nnew Uri objects.\n\n```php\nuse Dspacelabs\\Component\\Http\\Message\\Uri;\n\n$uri = new Uri('http://www.example.com');\n```\n\n### Creating Requests\n\n```php\nuse Dspacelabs\\Component\\Http\\Message\\Uri;\nuse Dspacelabs\\Component\\Http\\Message\\Request;\n\n$request = new Request();\n$request\n    -\u003ewithMethod('GET')\n    -\u003ewithUri(new Uri('http://www.example.com'));\n\n```\n\n### Creating Responses\n\n```php\nuse Dspacelabs\\Component\\Http\\Message\\Response;\n\n$resposne = new Response();\n$response\n    -\u003ewithStatus(200, 'OK');\n```\n\n## Testing\n\nTesting is done with PHPUnit and Phing. Once you make updates, run the command\n\n```bash\n./vendor/bin/phing\n```\n\nAnd this will run PHPUnit and give you test results.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdspacelabs%2Fhttp-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdspacelabs%2Fhttp-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdspacelabs%2Fhttp-message/lists"}