Thanks to visit codestin.com
Credit goes to sockeon.com

Skip to content
Production Ready

SockeonPHP WebSocket & HTTP Server

Build real-time applications with a unified server that handles both WebSocket and HTTP protocols seamlessly. Zero dependencies, production-ready, and built for modern PHP.

0
Dependencies
2
Protocols
100%
PHP Core
server.php
use Sockeon\Sockeon\Controllers\SocketController;
use Sockeon\Sockeon\WebSocket\Attributes\SocketOn;
 
class ChatController extends SocketController
{
    #[SocketOn('chat.message')]
    function handle(string $clientIdarray $data): void
    {
        $this->broadcast('chat.message'$data);
    }
}

Everything You Need

A complete solution for building real-time applications

🚀

Dual Protocol Server

Single server handling both WebSocket and HTTP requests. Build real-time applications and REST APIs from the same codebase.

🎯

Attribute-Based Routing

Clean, declarative routing using PHP 8 attributes. Define WebSocket events and HTTP routes with simple annotations.

🏠

Namespaces & Rooms

Organize client connections with namespaces and rooms. Broadcast messages to specific groups efficiently.

🛡️

Built-in Security

Rate limiting, CORS support, authentication, and validation built-in. Production-ready security features out of the box.

High Performance

Zero dependencies, built with PHP core functionality. Lightweight and optimized for high-concurrency applications.

🔧

Production Ready

Reverse proxy support, health checks, comprehensive logging, error handling, and uptime tracking included.

Get Started in Minutes

Simple, powerful, and ready for production

bash
composer require sockeon/sockeon

Built for Real-Time

Powerful enough for any real-time application

💬

Real-Time Chat

Build chat systems, live notifications, and collaborative features with WebSocket support.

📊

Live Dashboards

Create real-time monitoring dashboards that update instantly as data changes.

🎮

Gaming & Interactive

Power multiplayer games and interactive experiences with low-latency WebSocket connections.

🔌

API & WebSocket Hybrid

Serve REST APIs alongside WebSocket connections from a single server instance.

🌐

IoT & Devices

Connect and manage IoT devices with bidirectional real-time communication.

👥

Collaborative Tools

Build collaborative editing, live cursors, and shared workspace features.

Why Sockeon?

Built for developers who want simplicity without sacrificing power

🎨

Modern PHP 8 Features

Leverage attributes, typed properties, and modern PHP syntax for clean, maintainable code.

📦

Zero Dependencies

Built with PHP core functionality only. No external dependencies to manage.

🔒

Security First

Built-in rate limiting, authentication, validation, and CORS support for secure applications.

🚀

Production Ready

Health checks, logging, error handling, and reverse proxy support included.

📚

Comprehensive Docs

Extensive documentation with examples, API reference, and best practices.

🌐

Framework Agnostic

Works with any PHP application. No framework lock-in.