PHP Package: amphp/byte-stream

A high-performance PHP library for handling byte streams efficiently with asynchronous I/O operations.

Current Version: 2.1.2
Last Updated: 2025-03-16
PHP Requirement: >=8.1
Dependencies:
amphp/amp
react/event-loop
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The amphp/byte-stream library offers PHP developers a powerful tool to manage byte streams effectively, enhancing performance with asynchronous I/O handling. Ideal for applications requiring efficient stream processing, this library simplifies byte-level operations while maintaining high performance. With amphp/byte-stream, developers can optimize data handling, improve processing speed, and elevate overall application performance through streamlined byte stream management.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 2.1.2

Download Download v2.1.2

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/byte-stream/2.1.2/loader.php';
require_once 'libs/amphp/amp/3.1.0/loader.php';
require_once 'libs/react/event-loop/{lib_version}/loader.php';

use Amp\ByteStream\ByteStream;
use React\EventLoop\LoopInterface;

$obj = new ByteStream();
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.