|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2023-12-03 (22 hours ago) || 69%||Total: 479 This week: 2||All time: 5,942 This week: 135|
This package can process asynchronous I/O in pure PHP like Node.js.
It can register callback functions that are invoked when specific events occur.
The IOLoop class uses the libevent extension to add or remove streams of data or timers to watch and dispatch when relevant events occur.
The packages comes with classes for reading and writing from data streams like files, network sockets and pipes, as a well a dedicated class that works as HTTP server.
Prize: One downloadable e-book of choice by O'Reilly
|Asynchronous programming can be more efficient to execute multiple tasks in parallel that need to wait for I/O operations like accessing files, databases or remote computers.
Node.js made asynchronous programming very popular. This package implements asynchronous programming support in pure PHP very similar to the way Node.js works.
An asynchronous I/O environment in pure PHP, in another words, it is a micro nodejs implementation in pure PHP
> a simple HTTP server using the new HTTPD class
$frame = new Frame;
$httpd = $frame->httpd();
$response->writeHead(200, ["Content-Type" => "text/html"]);
$response->write("<title>Welcome to Plus http daemon</title>");
$response->write("<h1>It works !!</h1>");
added `id` property to the `IOStream` class
added `HTTPD` class as our official HTTP Daemon
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.