{"id":13621799,"url":"https://github.com/Nyholm/psr7-server","last_synced_at":"2025-04-15T01:34:05.943Z","repository":{"id":44639095,"uuid":"142652857","full_name":"Nyholm/psr7-server","owner":"Nyholm","description":"Helper classes to use any PSR7 implementation as your main request and response","archived":false,"fork":false,"pushed_at":"2023-11-08T09:32:58.000Z","size":48,"stargazers_count":94,"open_issues_count":13,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-17T00:08:05.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Nyholm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["nyholm","Zegnat"]}},"created_at":"2018-07-28T06:25:03.000Z","updated_at":"2025-03-11T20:52:24.000Z","dependencies_parsed_at":"2023-11-08T10:51:21.006Z","dependency_job_id":null,"html_url":"https://github.com/Nyholm/psr7-server","commit_stats":{"total_commits":40,"total_committers":10,"mean_commits":4.0,"dds":0.35,"last_synced_commit":"b846a689844cef114e8079d8c80f0afd96745ae3"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nyholm%2Fpsr7-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nyholm%2Fpsr7-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nyholm%2Fpsr7-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nyholm%2Fpsr7-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nyholm","download_url":"https://codeload.github.com/Nyholm/psr7-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245174395,"owners_count":20572765,"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":[],"created_at":"2024-08-01T21:01:10.690Z","updated_at":"2025-04-15T01:34:05.937Z","avatar_url":"https://github.com/Nyholm.png","language":"PHP","funding_links":["https://github.com/sponsors/nyholm","https://github.com/sponsors/Zegnat"],"categories":["PHP","Libraries"],"sub_categories":["PHP Libraries","Libraries"],"readme":"# Helper class to create PSR-7 server request\n\n[![Latest Version](https://img.shields.io/github/release/Nyholm/psr7-server.svg?style=flat-square)](https://github.com/Nyholm/psr7-server/releases)\n[![Build Status](https://img.shields.io/travis/Nyholm/psr7-server/master.svg?style=flat-square)](https://travis-ci.org/Nyholm/psr7-server)\n[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/Nyholm/psr7-server.svg?style=flat-square)](https://scrutinizer-ci.com/g/Nyholm/psr7-server)\n[![Quality Score](https://img.shields.io/scrutinizer/g/Nyholm/psr7-server.svg?style=flat-square)](https://scrutinizer-ci.com/g/Nyholm/psr7-server)\n[![Total Downloads](https://poser.pugx.org/nyholm/psr7-server/downloads)](https://packagist.org/packages/nyholm/psr7-server)\n[![Monthly Downloads](https://poser.pugx.org/nyholm/psr7-server/d/monthly.png)](https://packagist.org/packages/nyholm/psr7-server)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n\nA helper class that can create ANY PSR-7 server request. \n\n## Installation\n\n```bash\ncomposer require nyholm/psr7-server\n```\n\n## Usage\n\n```php\n// Instanciate ANY PSR-17 factory implementations. Here is nyholm/psr7 as an example\n$psr17Factory = new \\Nyholm\\Psr7\\Factory\\Psr17Factory();\n\n$creator = new \\Nyholm\\Psr7Server\\ServerRequestCreator(\n    $psr17Factory, // ServerRequestFactory\n    $psr17Factory, // UriFactory\n    $psr17Factory, // UploadedFileFactory\n    $psr17Factory  // StreamFactory\n);\n\n$serverRequest = $creator-\u003efromGlobals();\n```\n\n## Other packages\n\n* [nyholm/psr7](https://github.com/Nyholm/psr7) - A super fast PSR-7 implementation.\n* [laminas/laminas-httphandlerrunner](https://github.com/laminas/laminas-httphandlerrunner) - To send/emit PSR-7 responses\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNyholm%2Fpsr7-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNyholm%2Fpsr7-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNyholm%2Fpsr7-server/lists"}