src/Installer.php
private function readline(string $prompt)
    {
        if (PHP_OS == 'WINNT') {
            echo $prompt;
            $line = stream_get_line(STDIN, 1024, PHP_EOL);

        } else {
            $line = readline($prompt);
        }
        return $line;
    }
private function readline(string $prompt)
    {
        if (PHP_OS == 'WINNT') {
            echo $prompt;
            $line = stream_get_line(STDIN, 1024, PHP_EOL);

        } else {
            $line = readline($prompt);
        }
        return $line;
    }
private function readline ( string $ prompt ) { if ( PHP_OS == 'WINNT' ) { echo $ prompt ; $ line = stream_get_line ( STDIN , 1024 , PHP_EOL ) ; } else { $ line = readline ( $ prompt ) ; } return $ line ; }
Get user input from commandline
Get user input from commandline