{"id":33973738,"url":"https://github.com/remcodex/router","last_synced_at":"2025-12-13T01:17:13.835Z","repository":{"id":62534667,"uuid":"328648599","full_name":"remcodex/router","owner":"remcodex","description":"Remote Code Execution Router/Load Balancer","archived":false,"fork":false,"pushed_at":"2021-02-17T22:35:05.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-14T20:49:11.260Z","etag":null,"topics":["http","http-api","http-client","php","rce","reactphp","remcodex","remote-execution"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remcodex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-11T11:55:25.000Z","updated_at":"2021-02-17T22:35:07.000Z","dependencies_parsed_at":"2022-11-02T14:47:10.524Z","dependency_job_id":null,"html_url":"https://github.com/remcodex/router","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/remcodex/router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcodex%2Frouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcodex%2Frouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcodex%2Frouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcodex%2Frouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remcodex","download_url":"https://codeload.github.com/remcodex/router/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcodex%2Frouter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27697478,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["http","http-api","http-client","php","rce","reactphp","remcodex","remote-execution"],"created_at":"2025-12-13T01:17:13.211Z","updated_at":"2025-12-13T01:17:13.827Z","avatar_url":"https://github.com/remcodex.png","language":"PHP","readme":"# RCE Router\n\nRemote code execution router/load balancer - Checks which [RCE Server](https://github.com/remcodex/server) has the\nlowest connections and sends the client request to it.\n\n## Notice 🔊\n\nThis project is currently receiving massive updates, which may include code refactoring, namespace change, and many\nother stuffs that may cause the code to brake or not work entirely.\u003cbr/\u003e\n**This project is not ready!!!**\n\n## Installation\n\n```bash\ncomposer require remcodex/router\n```\n\n## Usage\n\n```php\nuse Remcodex\\Router\\RemoteServer;\nuse Remcodex\\Router\\Server;\n\nrequire 'vendor/autoload.php';\n\n$serverUri = '0.0.0.0:9000';\n$server = Server::listen($serverUri);\n\n//Add remote server\n$server-\u003eaddRemoteServer(\n    //1\n    RemoteServer::create('localhost:9110')\n        -\u003eprotocol(RemoteServer::UNSECURE)\n        -\u003epath('api/http/request'),\n    //2\n    RemoteServer::create('localhost:9111')\n        -\u003eprotocol(RemoteServer::UNSECURE)\n        -\u003epath('api/http/request'),\n    //3\n    RemoteServer::create('localhost:9112')\n        -\u003eprotocol(RemoteServer::UNSECURE)\n        -\u003epath('api/http/request'),\n);\n\n//Add error handler\n$server-\u003eonError(function (Throwable $exception) {\n    echo \"Error occurred\";\n    echo $exception;\n});\n\necho \"Server starting at: http://{$serverUri}\\n\";\n$server-\u003estart();\n```\n\n**Note:** [Remote Servers](https://github.com/remcodex/server#usage) must be started for each address registered above.\n\nBuilt with [ReactPHP](https://reactphp.org)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremcodex%2Frouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremcodex%2Frouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremcodex%2Frouter/lists"}