{"id":21988858,"url":"https://github.com/indragunawan/swoole-http-message-bridge","last_synced_at":"2025-04-30T11:22:58.434Z","repository":{"id":56991001,"uuid":"118896630","full_name":"IndraGunawan/swoole-http-message-bridge","owner":"IndraGunawan","description":"Provides integration Swoole Http Request / Response to Symfony Request / Response.","archived":false,"fork":false,"pushed_at":"2020-03-19T16:21:31.000Z","size":10,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-17T17:17:43.921Z","etag":null,"topics":["swoole","swoole-http","symfony-bridge"],"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/IndraGunawan.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":"2018-01-25T10:10:44.000Z","updated_at":"2023-04-06T10:28:25.000Z","dependencies_parsed_at":"2022-08-21T10:10:52.672Z","dependency_job_id":null,"html_url":"https://github.com/IndraGunawan/swoole-http-message-bridge","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/IndraGunawan%2Fswoole-http-message-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndraGunawan%2Fswoole-http-message-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndraGunawan%2Fswoole-http-message-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndraGunawan%2Fswoole-http-message-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IndraGunawan","download_url":"https://codeload.github.com/IndraGunawan/swoole-http-message-bridge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251689116,"owners_count":21627843,"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":["swoole","swoole-http","symfony-bridge"],"created_at":"2024-11-29T19:23:03.146Z","updated_at":"2025-04-30T11:22:58.354Z","avatar_url":"https://github.com/IndraGunawan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swoole Http Message Bridge\n\n[![license](https://img.shields.io/github/license/IndraGunawan/swoole-http-message-bridge.svg?style=flat-square)](https://github.com/IndraGunawan/swoole-http-message-bridge/blob/master/LICENSE)\n[![Source](https://img.shields.io/badge/source-IndraGunawan%2Fswoole--http--message--bridge-blue.svg)](https://github.com/IndraGunawan/swoole-http-message-bridge)\n[![Packagist](https://img.shields.io/badge/packagist-indragunawan%2Fswoole--http--message--bridge-blue.svg)](https://packagist.org/packages/indragunawan/swoole-http-message-bridge)\n[![Travis](https://img.shields.io/travis/IndraGunawan/swoole-http-message-bridge.svg?style=flat-square)](https://travis-ci.org/IndraGunawan/swoole-http-message-bridge)\n\nProvides integration Swoole Http Request / Response to Symfony Request / Response.\n\n## Installation\n\nRequire the package with composer. (`indragunawan/api-rate-limit-bundle` on [Packagist](https://packagist.org/packages/indragunawan/swoole-http-message-bridge));\n```bash\ncomposer require indragunawan/swoole-http-message-bridge\n```\n\n## Usage\n\n### Symfony Request and Response\n\n```php\n\u003c?php\n\nuse Indragunawan\\SwooleHttpMessageBridge\\Symfony\\Request;\nuse Indragunawan\\SwooleHttpMessageBridge\\Symfony\\Response;\n\n$http = new swoole_http_server(/*...*/);\n\n$http-\u003eon('request', function (swoole_http_request $request, swoole_http_response $response) {\n    $sfRequest = Request::createFromSwooleRequest($request);\n    // ...\n    // $sfResponse = run_something_here that return Symfony response\n    Response::writeSwooleResponse($response, $sfResponse);\n    // ...\n    $response-\u003eend();\n});\n\n$http-\u003estart();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findragunawan%2Fswoole-http-message-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findragunawan%2Fswoole-http-message-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findragunawan%2Fswoole-http-message-bridge/lists"}