PHPackages                             remcodex/server - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. remcodex/server

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

remcodex/server
===============

Remote code execution server.

221PHP

Since Feb 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/remcodex/server)[ Packagist](https://packagist.org/packages/remcodex/server)[ RSS](/packages/remcodex-server/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

RCE Server
==========

[](#rce-server)

Remote code execution server - this library uses [Guzwrap](https://github.com/Ahmard/guzwrap) to deconstruct sent request, perform it, and then send back request response to [RCE Client](https://github.com/remcodex/client).
This library act like slave, except that it only support [Guzwrap](https://github.com/Ahmard/guzwrap) request objects at the moment.

Notice 🔊
--------

[](#notice-)

This project is currently receiving massive updates, which may include code refactoring, namespace change, and many other stuffs that may cause the code to brake or not work entirely.
**This project is not ready!!!**

Installation
------------

[](#installation)

```
composer require remcodex/server
```

Usage
-----

[](#usage)

```
use Remcodex\Server\Command;
use Remcodex\Server\ErrorHandler;
use Remcodex\Server\Prebuilt\RequestListener;
use Remcodex\Server\Prebuilt\ResponseListener;
use Remcodex\Server\Router;
use Remcodex\Server\Server;

require 'vendor/autoload.php';

//Load http routes
$collector = Router::load(__DIR__ . '/routes.php');

//Load request commands
$commands = Command::load(__DIR__ . '/commands.php');

//Create and start server
Server::create()
    ->setEnvironment(Server::ENV_DEVELOPMENT)
    ->setErrorHandler(new ErrorHandler())
    ->setRouteCollector($collector)
    ->setCommands($commands)
    ->onRequest(new RequestListener())
    ->onResponse(new ResponseListener())
    ->run();
```

### Events

[](#events)

- App Events

```
use Remcodex\Server\Events\AppEvent;

AppEvent::onError(function (Throwable $exception){
    echo "Error: {$exception->getMessage()} \n";
});
```

- Http Events

```
use Psr\Http\Message\ServerRequestInterface;
use QuickRoute\Route\DispatchResult;
use Remcodex\Server\Events\HttpEvent;
use Remcodex\Server\Response\ResponseInterface;

HttpEvent::onRequest(function (ServerRequestInterface $request){
    echo "Request received: [{$request->getMethod()}] {$request->getUri()} \n";
});

HttpEvent::onDispatch(function (DispatchResult $dispatchResult){
    echo "Route dispatched: {$dispatchResult->getRoute()->getPrefix()} \n";
});

HttpEvent::onResponse(function (ResponseInterface $response){
    echo "Response about to be sent: {$response->getStatusCode()} \n";
});
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d00ce8c24abcea85bec1855556fa49cefa0176239d2e2941460fc4bf09899a5?d=identicon)[remcodex](/maintainers/remcodex)

---

Tags

guzwrapguzzlehttphttpphprceremcodexremote-execution

### Embed Badge

![Health badge](/badges/remcodex-server/health.svg)

```
[![Health](https://phpackages.com/badges/remcodex-server/health.svg)](https://phpackages.com/packages/remcodex-server)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
