The easy input wrapper for PHP.
Abandoned: Use the
stdin
class of Asyncore, instead.
- 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.
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.
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.