 |
|
Innovation award
 Nominee: 2x |
This package can be used to manage multiple simultaneous network connections or file accesses. It is loosely based on the selectable channels implementation from Java's NIO package.
It can create streams to access files, access network servers or accept connections from network clients.
The streams can be set to non-blocking mode, so this package can manage the access to data read or written to multiple streams simultaneously.
It can register selectors for all the streams, so it can wait and handle the data read or written to multiple streams when it is ready.
 April 2007
Number 4 |
Some applications require retrieving information from many sources, like files or remote network connections.
Using synchronous access, a regular script can only access one data source at a time. If a script needs to poll multiple sources, not only it may take a lot of time, but waiting from one source to respond may halt the script forever.
An alternative approach to retrieve data from many sources is to use asynchronous access to poll many sources at the same time. This way it does not block the applications from doing parallel processing while waiting for the data to come.
This package provides a solution that uses non-blocking streams to provide simultaneous access to multiple files or network connections for any PHP application.
Manuel Lemos |
| Project record: |
phpmio |
| Popularity score: |
9.59 |
| Vitality score: |
43.34 |
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Sufficient (75.0%) |
Sufficient (75.0%) |
- |
Sufficient (75.0%) |
Sufficient (66.7%) |
- |
Not sure (59.2%) |
878 |
| Month: |
Not yet rated by the users |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|
| File |
Role |
Description |
downloader.php |
Example |
Example of downloading multiple files |
riddler.php |
Example |
Self contained example |