PHP Package: amphp/socket

Efficient PHP library for handling asynchronous network communication with sockets.

Current Version: 2.3.1
Last Updated: 2024-04-21
PHP Requirement: >=8.1
Dependencies:
amphp/amp
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

amphp/socket is a robust PHP library designed for asynchronous network communication using sockets. It offers high-performance socket handling capabilities, supporting non-blocking I/O operations. With amphp/socket, developers can build scalable, responsive network applications efficiently. This library streamlines socket management, allowing for seamless integration with various network protocols. Enhance your PHP applications with the power of asynchronous socket communication using amphp/socket.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.3.1

Download Download v2.3.1

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/socket/2.3.1/loader.php';
require_once 'libs/amphp/amp/3.1.0/loader.php';

use Amp\Socket\Server;
use Amp\Socket\Client;

$obj = new Server();
echo '✅ Test OK: ' . get_class($obj);
?>

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

Community Discussion

Ask questions, share tips, or report issues below.