# 🦄 Server

The XR Debug server is the layer charge of receive and stream the debug messages. The XR Debug server can spawn from your project folder, Docker and even from a third-party server.

The repository source is available at GitHub (opens new window).

# Command

./xr <options>
Option Explain
-p Port
-e Enable end-to-end encryption
-k Symmetric key (for -e option)
-v Enable sign verification
-s Private key (for -v option)
-c Cert file for TLS

# Dependency server

💡 If you installed chevere/xr the dependency server is already included.

Install the server repository as a dependency for your project:

composer require --dev chevere/xr-server

Run the server:

vendor/bin/xr

# Docker server

Run the following command to start the server at port 27420:

docker run \
    --pull=always --rm --init \
    -i -p 27420:27420 \
    ghcr.io/chevere/xr-server:latest

🐋 Check Docker configuration when using Docker.

# Source server

To run from source clone the repository:

git clone https://github.com/chevere/xr-server.git

Run the server:

./xr

# Demo

Spawn the server, then run:

php vendor/chevere/xr/demo/demo.php
Last Updated: 11/16/2022, 9:45:14 PM