PHP Package: amphp/websocket-client

Efficient PHP library for WebSocket client connections with advanced features and async support.

Current Version:
Last Updated:
PHP Requirement: >=7.1
Dependencies: amphp/socket, amphp/async, react/socket
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The amphp/websocket-client library provides a high-performance solution for establishing WebSocket connections in PHP applications. It offers advanced features such as message buffering, auto-reconnection, and async capabilities, making it ideal for real-time communication needs. With robust error handling and event-driven architecture, this library ensures seamless WebSocket integration in your projects.

🔗 View on GitHub

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/amphp/websocket-client/lib_version/autoload.php';

use Amp\Artax\Client;
use Amp\Artax\Cookie\SetCookie;
use Amp\Artax\Cookie\CookieJar;


$obj = new Amp\Artax\Client();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.