{"id":34001614,"url":"https://github.com/remcodex/server","last_synced_at":"2026-04-06T01:32:23.990Z","repository":{"id":62534666,"uuid":"325783606","full_name":"remcodex/server","owner":"remcodex","description":"Remote Code Execution Server","archived":false,"fork":false,"pushed_at":"2021-02-15T02:29:03.000Z","size":67,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T22:07:20.027Z","etag":null,"topics":["guzwrap","guzzlehttp","http","php","rce","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":"2020-12-31T11:15:10.000Z","updated_at":"2021-02-15T02:29:05.000Z","dependencies_parsed_at":"2022-11-02T15:03:30.625Z","dependency_job_id":null,"html_url":"https://github.com/remcodex/server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/remcodex/server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcodex%2Fserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcodex%2Fserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcodex%2Fserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcodex%2Fserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remcodex","download_url":"https://codeload.github.com/remcodex/server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remcodex%2Fserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31456655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["guzwrap","guzzlehttp","http","php","rce","remcodex","remote-execution"],"created_at":"2025-12-13T09:56:28.731Z","updated_at":"2026-04-06T01:32:23.983Z","avatar_url":"https://github.com/remcodex.png","language":"PHP","readme":"# RCE Server\n\nRemote code execution server - this library uses [Guzwrap](https://github.com/Ahmard/guzwrap) to deconstruct sent\nrequest, perform it, and then send back request response to\n[RCE Client](https://github.com/remcodex/client). \u003cbr/\u003e\nThis library act like slave, except that it only support [Guzwrap](https://github.com/Ahmard/guzwrap) request objects at\nthe moment.\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/server\n```\n\n## Usage\n\n```php\nuse Remcodex\\Server\\Command;\nuse Remcodex\\Server\\ErrorHandler;\nuse Remcodex\\Server\\Prebuilt\\RequestListener;\nuse Remcodex\\Server\\Prebuilt\\ResponseListener;\nuse Remcodex\\Server\\Router;\nuse Remcodex\\Server\\Server;\n\nrequire 'vendor/autoload.php';\n\n//Load http routes\n$collector = Router::load(__DIR__ . '/routes.php');\n\n//Load request commands\n$commands = Command::load(__DIR__ . '/commands.php');\n\n//Create and start server\nServer::create()\n    -\u003esetEnvironment(Server::ENV_DEVELOPMENT)\n    -\u003esetErrorHandler(new ErrorHandler())\n    -\u003esetRouteCollector($collector)\n    -\u003esetCommands($commands)\n    -\u003eonRequest(new RequestListener())\n    -\u003eonResponse(new ResponseListener())\n    -\u003erun();\n```\n\n### Events\n\n- App Events\n\n```php\nuse Remcodex\\Server\\Events\\AppEvent;\n\n\nAppEvent::onError(function (Throwable $exception){\n    echo \"Error: {$exception-\u003egetMessage()} \\n\";\n});\n```\n\n- Http Events\n\n```php\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse QuickRoute\\Route\\DispatchResult;\nuse Remcodex\\Server\\Events\\HttpEvent;\nuse Remcodex\\Server\\Response\\ResponseInterface;\n\nHttpEvent::onRequest(function (ServerRequestInterface $request){\n    echo \"Request received: [{$request-\u003egetMethod()}] {$request-\u003egetUri()} \\n\";\n});\n\nHttpEvent::onDispatch(function (DispatchResult $dispatchResult){\n    echo \"Route dispatched: {$dispatchResult-\u003egetRoute()-\u003egetPrefix()} \\n\";\n});\n\nHttpEvent::onResponse(function (ResponseInterface $response){\n    echo \"Response about to be sent: {$response-\u003egetStatusCode()} \\n\";\n});\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremcodex%2Fserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremcodex%2Fserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremcodex%2Fserver/lists"}