PHPackages                             highperapp/realtime - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. highperapp/realtime

ActiveLibrary[HTTP &amp; Networking](/categories/http)

highperapp/realtime
===================

High-performance real-time web library for HighPer framework with WebSocket, SSE, and WebTransport support

1.0(9mo ago)00MITPHPPHP ^8.3|^8.4

Since Jul 27Pushed 9mo agoCompare

[ Source](https://github.com/highperapp/realtime)[ Packagist](https://packagist.org/packages/highperapp/realtime)[ RSS](/packages/highperapp-realtime/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

HighPer Real-Time Web Library
=============================

[](#highper-real-time-web-library)

A high-performance, pluggable real-time web library for the HighPer PHP framework, supporting WebSocket, Server-Sent Events (SSE), and WebTransport protocols.

Features
--------

[](#features)

- 🚀 **High Performance**: Built on AMPHP for maximum concurrency (C10M capability)
- 🔌 **Pluggable Architecture**: Optional installation and configuration
- 🌐 **Multi-Protocol Support**: WebSocket, SSE, WebTransport (HTTP/3 + QUIC)
- ⚙️ **Environment Driven**: Complete configuration through environment variables
- 📡 **Broadcasting**: Memory, Redis, and NATS broadcasting drivers
- 🔒 **Security**: JWT authentication, rate limiting, CORS support
- 📊 **Modular Observability**: Optional monitoring and tracing standalone libraries
- 🔍 **Zero-Config Telemetry**: Auto-discovery with graceful degradation
- 🛡️ **Enterprise Features**: Security monitoring, distributed tracing, metrics export
- 🎯 **Protocol Abstraction**: Unified API across all real-time protocols
- 🔄 **Zero-Downtime**: Connection migration support for deployments
- 📦 **HighPer Integration**: Native integration with HighPer framework

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

[](#installation)

```
# Install the real-time extension package
composer require highperapp/realtime

# Copy environment configuration
cp vendor/highperapp/realtime/.env.example .env
```

Quick Start
-----------

[](#quick-start)

### 1. Basic Setup

[](#1-basic-setup)

```
# Enable real-time features
echo "REALTIME_ENABLED=true" >> .env
echo "WEBSOCKET_ENABLED=true" >> .env
echo "SSE_ENABLED=true" >> .env

# Optional: Enable observability libraries (install separately)
echo "TELEMETRY_ENABLED=true" >> .env  # Enables both if available
echo "MONITORING_ENABLED=true" >> .env # Enable monitoring only
echo "TRACING_ENABLED=true" >> .env    # Enable tracing only
```

### 2. Auto-Integration

[](#2-auto-integration)

The library automatically integrates with your HighPer application when real-time environment variables are detected:

```
