{"id":24694460,"url":"https://github.com/roadrunner-php/goridge","last_synced_at":"2025-05-15T11:06:45.613Z","repository":{"id":43052679,"uuid":"296115862","full_name":"roadrunner-php/goridge","owner":"roadrunner-php","description":"PHP Goridge Protocol implementation","archived":false,"fork":false,"pushed_at":"2025-05-05T14:03:04.000Z","size":2928,"stargazers_count":116,"open_issues_count":1,"forks_count":9,"subscribers_count":11,"default_branch":"4.x","last_synced_at":"2025-05-08T15:42:56.273Z","etag":null,"topics":["hacktoberfest","php","protocol","roadrunner","rpc","rpc-framework"],"latest_commit_sha":null,"homepage":"https://docs.roadrunner.dev/php-worker/rpc","language":"PHP","has_issues":false,"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/roadrunner-php.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"roadrunner-server"}},"created_at":"2020-09-16T18:29:59.000Z","updated_at":"2025-05-05T13:55:44.000Z","dependencies_parsed_at":"2024-05-10T21:52:28.478Z","dependency_job_id":"2a259a8f-cd63-4331-acd4-35f2acb0d251","html_url":"https://github.com/roadrunner-php/goridge","commit_stats":{"total_commits":369,"total_committers":25,"mean_commits":14.76,"dds":0.4417344173441734,"last_synced_commit":"8fe68b0c871862f9ec852659de1cc7c1a68b783f"},"previous_names":["spiral/goridge-php"],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadrunner-php%2Fgoridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadrunner-php%2Fgoridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadrunner-php%2Fgoridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roadrunner-php%2Fgoridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roadrunner-php","download_url":"https://codeload.github.com/roadrunner-php/goridge/tar.gz/refs/heads/4.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253300815,"owners_count":21886518,"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":["hacktoberfest","php","protocol","roadrunner","rpc","rpc-framework"],"created_at":"2025-01-26T23:59:46.994Z","updated_at":"2025-05-15T11:06:45.595Z","avatar_url":"https://github.com/roadrunner-php.png","language":"PHP","readme":"\u003ca href=\"https://roadrunner.dev\" target=\"_blank\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/roadrunner-server/.github/assets/8040338/e6bde856-4ec6-4a52-bd5b-bfe78736c1ff\"\u003e\n    \u003cimg align=\"center\" src=\"https://github.com/roadrunner-server/.github/assets/8040338/040fb694-1dd3-4865-9d29-8e0748c2c8b8\"\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n\n# High-performance PHP-to-Golang IPC bridge\n\n[![Latest Stable Version](https://poser.pugx.org/spiral/goridge/v/stable)](https://packagist.org/packages/spiral/goridge)\n[![CI](https://github.com/spiral/goridge-php/workflows/CI/badge.svg)](https://github.com/spiral/goridge-php/actions)\n[![Codecov](https://codecov.io/gh/roadrunner-php/goridge/branch/master/graph/badge.svg)](https://codecov.io/gh/roadrunner-php/goridge/)\n[![Chat](https://img.shields.io/badge/discord-chat-magenta.svg)](https://discord.gg/TFeEmCs)\n\n\u003cimg src=\"https://files.phpclasses.org/graphics/phpclasses/innovation-award-logo.png\" height=\"90px\" alt=\"PHPClasses Innovation Award\" align=\"left\"/\u003e\n\nGoridge is high performance PHP-to-Golang codec library which works over native PHP sockets and Golang net/rpc package. The library allows you to call Go service methods from PHP with minimal footprint, structures and `[]byte` support.  \nGolang source code can be found in this repository: [goridge](https://github.com/roadrunner-server/goridge)\n\n\u003cbr/\u003e\nSee https://github.com/spiral/roadrunner - High-performance PHP application server, load-balancer and process manager written in Golang\n\u003cbr/\u003e\n\n## Features\n\n - no external dependencies or services, drop-in (64bit PHP version required)\n - sockets over TCP or Unix (ext-sockets is required), standard pipes\n - very fast (300k calls per second on Ryzen 1700X over 20 threads)\n - native `net/rpc` integration, ability to connect to existing application(s)\n - standalone protocol usage\n - structured data transfer using json or msgpack\n - `[]byte` transfer, including big payloads\n - service, message and transport level error handling\n - hackable\n - works on Windows\n - unix sockets powered (also on Windows)\n\n## Installation\n\n```\ncomposer require spiral/goridge\n```\n\n## Example\n\n```php\n\u003c?php\n\nuse Spiral\\Goridge;\nrequire \"vendor/autoload.php\";\n\n$rpc = new Goridge\\RPC\\RPC(\n    Goridge\\Relay::create('tcp://127.0.0.1:6001')\n);\n\n//or, using factory:\n$tcpRPC = new Goridge\\RPC\\RPC(Goridge\\Relay::create('tcp://127.0.0.1:6001'));\n$unixRPC = new Goridge\\RPC\\RPC(Goridge\\Relay::create('unix:///tmp/rpc.sock'));\n$streamRPC = new Goridge\\RPC\\RPC(Goridge\\Relay::create('pipes://stdin:stdout'));\n\necho $rpc-\u003ecall(\"App.Hi\", \"Antony\");\n```\n\n\u003e Factory applies the next format: `\u003cprotocol\u003e://\u003carg1\u003e:\u003carg2\u003e`\n\nMore examples can be found in [this directory](./examples).\n\nLicense\n-------\nThe MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.\n","funding_links":["https://github.com/sponsors/roadrunner-server"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froadrunner-php%2Fgoridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froadrunner-php%2Fgoridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froadrunner-php%2Fgoridge/lists"}