Download the PHP package highperapp/realtime without Composer

On this page you can find all versions of the php package highperapp/realtime. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package realtime

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

Installation

Quick Start

1. Basic Setup

2. Auto-Integration

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

3. Manual Integration

For more control, manually register the service provider:

Protocol Usage

WebSocket Example

Server-Sent Events Example

Broadcasting Example

Configuration

Environment Variables

Create a .env file or add to your existing .env (see .env.example for all options):

Programmatic Configuration

Use Cases

1. Gaming Application

2. Financial Trading Platform

3. Live Collaboration Tool

4. Live Dashboard

Monitoring and Observability

Modular Observability Architecture

HighPer Real-time integrates with separate standalone libraries for flexible observability:

Installation Options

Option 1: Monitoring Only (Nano Apps)

Benefits: Metrics, security, health checks (~5MB overhead)

Option 2: Tracing Only (Debug/Development)

Benefits: Distributed tracing, correlation IDs (~8MB overhead)

Option 3: Full Observability (Enterprise)

Benefits: Complete observability stack (~12MB overhead)

Zero-Configuration Features

Automatic when libraries are installed:

Health Check Endpoints

Endpoint Purpose Description
/health/telemetry Overall health Complete telemetry system status
/health/monitoring Monitoring health Metrics collection status
/health/tracing Tracing health Span processing status
/health/protocols Protocol health Real-time protocol status
/health/ready Readiness probe Kubernetes readiness check
/health/live Liveness probe Kubernetes liveness check
/metrics Prometheus metrics Metrics in Prometheus format

Sample Health Check Response

Automatic Protocol Instrumentation

Your existing code gets automatic monitoring without any changes:

Prometheus Metrics Example

Advanced Configuration

Configure observability libraries independently:

Security Monitoring

Automatic threat detection for:

Custom Metrics and Tracing (Optional)

Add business-specific observability when libraries are available:

Security

JWT Authentication

Rate Limiting

Deployment

Docker Deployment

Kubernetes Deployment

Performance Optimization

Connection Pooling

Memory Management

Load Balancing

Testing

The library includes comprehensive tests covering unit, integration, performance, concurrency, and reliability testing.

Test Structure

Running Tests

Test Environment Configuration

Tests use the following environment configuration (see phpunit.xml):

Test Categories

Unit Tests

Integration Tests

Performance Tests

Concurrency Tests

Reliability Tests

Performance Benchmarks

The library targets the following performance benchmarks:

Metric Target Test Coverage
Message Latency (avg) <100ms ✅ Performance Tests
Message Latency (P95) <200ms ✅ Performance Tests
Throughput >1000 msg/sec ✅ Performance Tests
Memory Usage <50KB per connection ✅ Performance Tests
Connection Rate >100 conn/sec ✅ Performance Tests
Broadcast Speed <500ms for 1000 connections ✅ Performance Tests
Recovery Time <5s after failure ✅ Reliability Tests
Data Integrity >99% under failures ✅ Reliability Tests

Continuous Integration

The test suite is designed for CI/CD integration:

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add comprehensive tests (required for all changes)
  5. Run the test suite: composer test
  6. Run performance tests: composer test -- --group performance
  7. Ensure all tests pass and coverage is maintained
  8. Commit your changes (git commit -m 'Add amazing feature')
  9. Push to the branch (git push origin feature/amazing-feature)
  10. Submit a pull request

Testing Requirements for Contributors

Development Environment Setup

License

MIT License - see LICENSE file for details.

Support


All versions of realtime with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3|^8.4
highperapp/highper-php Version ^1.0
highperapp/compression Version ^1.0
amphp/websocket-server Version ^4.0
amphp/http-server Version ^3.0
amphp/http-client Version ^5.0
amphp/serialization Version ^1.0
psr/log Version ^3.0
highperapp/zero-downtime Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package highperapp/realtime contains the following files

Loading the files please wait ...