hell-sh / pai
This package is abandoned and no longer maintained.
The author suggests using the hell-sh/asyncore package instead.
The easy input wrapper for PHP.
v2.1.1
2019-11-29 14:20 UTC
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2020-01-11 11:15:01 UTC
README
The easy input wrapper for PHP.
Abandoned: Use the
stdin
class of Asyncore, instead.
Why?
- Asynchronous input on Windows is only possible using workarounds. This is a known issue but no one is interested in solving it.
- STDIN is entirely broken on Windows as of 7.4.
When?
Whenever you need asynchronous or synchronous input of lines to work on all operating systems. If you need character-by-character input, I'm afraid your script will not work on Windows, regardless of what you do.
Installation
pai has no prerequisites, you can simply composer require hell-sh/pai
or copy the src folder and require the pai.php in there.
All functions on hellsh\pai
are documented here.